give a better error message in preprocessor when #ifver fails

This commit is contained in:
Chris Beck 2015-04-11 22:08:41 -04:00
parent 75e34ac9bd
commit e28a6bfcc6

View file

@ -947,7 +947,10 @@ bool preprocessor_data::get_chunk()
conditional_skip(command == "ifver" ? !found : found);
} else {
target_.error("Undefined macro in #ifver/#ifnver first argument", linenum_);
std::string err = "Undefined macro in #ifver/#ifnver first argument: '";
err += vsymstr;
err += "'";
target_.error(err, linenum_);
}
} else if (command == "else") {
if (token.type == token_desc::SKIP_ELSE) {