preprocessor: a segmentation fault fix. Check if tokens is null.
This commit is contained in:
parent
a196ea1c2c
commit
b9460ca6f8
|
@ -475,6 +475,8 @@ std::string Preprocessor::expandMacros(std::string code)
|
|||
Tokenizer tokenizer;
|
||||
std::istringstream istr(macro.c_str());
|
||||
tokenizer.tokenize(istr, "");
|
||||
if (! tokenizer.tokens())
|
||||
continue;
|
||||
|
||||
// Extract macro parameters
|
||||
std::vector<std::string> macroparams;
|
||||
|
|
Loading…
Reference in New Issue