From: Dale Weiler Date: Thu, 17 Oct 2013 07:47:26 +0000 (-0400) Subject: Use "##" to ensure the names of the accumulated functions are striped by the IR. X-Git-Tag: 0.3.5~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05ac126d6f961a8b3e505493bcc46b74bb65d67d;p=xonotic%2Fgmqcc.git Use "##" to ensure the names of the accumulated functions are striped by the IR. --- diff --git a/parser.c b/parser.c index 2ac19ec..4c74fdd 100644 --- a/parser.c +++ b/parser.c @@ -4007,7 +4007,7 @@ static bool parse_function_body(parser_t *parser, ast_value *var) } /* generate a new name increasing the accumulation count*/ - util_snprintf(acname, sizeof(acname), "$ACCUMULATE_%s_%d", var->name, var->constval.vfunc->accumulation++); + util_snprintf(acname, sizeof(acname), "##ACCUMULATE_%s_%d", var->name, var->constval.vfunc->accumulation++); accum = ast_value_new(parser_ctx(parser), acname, ((ast_expression*)var)->vtype); if (!accum) return false;