]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ir.h
IR generation: for functions: first generate all defs, then the code, so access to...
[xonotic/gmqcc.git] / ir.h
diff --git a/ir.h b/ir.h
index 59b4488724d7be4b2ff242856110e00a25a1735d..dc29e79e297c109a4b203913fca87d91309d36dd 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -260,6 +260,14 @@ typedef struct ir_function_s
 
     lex_ctx       context;
 
+    /* for prototypes - first we generate all the
+     * globals, and we remember teh function-defs
+     * so we can later fill in the entry pos
+     *
+     * remember the ID:
+     */
+    qcint code_function_def;
+
     /* for temp allocation */
     size_t run_id;