]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.h
Constant fold intrinsics if their arguments are constant. TODO: reference count intri...
[xonotic/gmqcc.git] / ast.h
diff --git a/ast.h b/ast.h
index 9b7e5587f9cd6e11912cd439b9be72e4c290490a..11644ff5674cde51edc2339e05982091c840c7ad 100644 (file)
--- a/ast.h
+++ b/ast.h
@@ -207,6 +207,9 @@ struct ast_value_s
     /* ONLY for arrays in progs version up to 6 */
     ast_value *setter;
     ast_value *getter;
     /* ONLY for arrays in progs version up to 6 */
     ast_value *setter;
     ast_value *getter;
+
+
+    bool      intrinsic; /* true if associated with intrinsic */
 };
 
 ast_value* ast_value_new(lex_ctx_t ctx, const char *name, int qctype);
 };
 
 ast_value* ast_value_new(lex_ctx_t ctx, const char *name, int qctype);