From: Wolfgang Bumiller Date: Thu, 10 Jan 2013 21:08:49 +0000 (+0100) Subject: replacing an error message in the enum parsing X-Git-Tag: before-library~311 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=88cfa53dc27c1f6bd4d0d102b8010ad401b69904;p=xonotic%2Fgmqcc.git replacing an error message in the enum parsing --- diff --git a/parser.c b/parser.c index c457d1b..e38ceda 100644 --- a/parser.c +++ b/parser.c @@ -3487,7 +3487,7 @@ static bool parse_enum(parser_t *parser) old = parse_expression_leave(parser, true, false, false); asvalue = (ast_value*)old; if (!ast_istype(old, ast_value) || asvalue->cvq != CV_CONST || !asvalue->hasvalue) { - parseerror(parser, "enumeration value for must be a constant"); + compile_error(ast_ctx(var), "constant value or expression expected"); goto onerror; } num = (var->constval.vfloat = asvalue->constval.vfloat) + 1;