]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Use "##" to ensure the names of the accumulated functions are striped by the IR.
authorDale Weiler <killfieldengine@gmail.com>
Thu, 17 Oct 2013 07:47:26 +0000 (03:47 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 17 Oct 2013 07:47:26 +0000 (03:47 -0400)
parser.c

index 2ac19ec70dd62e11886a1c6d8017a4b87995ce71..4c74fddf1046ad99d1239e1a37e759ee1b8f05cc 100644 (file)
--- 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;