X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=code.c;h=3c418b1653125786a47f44355a32ae23e4da79b5;hb=52b4c9f0c10267fbba0c81336de56265ed0c6f4d;hp=964797f8793e57191122f905a6c994c484d18f4c;hpb=83a41d13c07c21371a5205c8b0f9e5d4878d0dc7;p=xonotic%2Fgmqcc.git diff --git a/code.c b/code.c index 964797f..3c418b1 100644 --- a/code.c +++ b/code.c @@ -39,6 +39,12 @@ void code_push_statement(prog_section_statement *stmt, int linenum) vec_push(code_linenums, linenum); } +void code_pop_statement() +{ + vec_pop(code_statements); + vec_pop(code_linenums); +} + void code_init() { prog_section_function empty_function = {0,0,0,0,0,0,0,{0}}; prog_section_statement empty_statement = {0,{0},{0},{0}};