]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - gmqcc.h
commenting on the quirks of MUL_VF and MUL_FV in gmqcc.h's instruction list
[xonotic/gmqcc.git] / gmqcc.h
diff --git a/gmqcc.h b/gmqcc.h
index bc64d56553bb5086aa912df7d41e4149709235f4..68cc39375e7e894ffaef7b362b912986e62096e1 100644 (file)
--- a/gmqcc.h
+++ b/gmqcc.h
@@ -410,8 +410,8 @@ enum {
     INSTR_DONE,
     INSTR_MUL_F,
     INSTR_MUL_V,
-    INSTR_MUL_FV,
-    INSTR_MUL_VF,
+    INSTR_MUL_FV, /* NOTE: the float operands must NOT be at the same locations: A != C */
+    INSTR_MUL_VF, /* and here: B != C */
     INSTR_DIV_F,
     INSTR_ADD_F,
     INSTR_ADD_V,
@@ -881,6 +881,8 @@ typedef struct qc_program_s {
     MEM_VECTOR_MAKE(qc_exec_stack, stack);
     size_t statement;
 
+    size_t xflags;
+
     int    argc; /* current arg count for debugging */
 } qc_program;