]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.h
Cleanups
[xonotic/gmqcc.git] / parser.h
index 08692107b93dcf061cccff5032c095e77ee14cf9..15c0ce40e6c293617cc37b50d348b848977880f1 100644 (file)
--- a/parser.h
+++ b/parser.h
@@ -36,7 +36,8 @@ typedef struct {
     hash_table_t    *imm_string_dotranslate; /* map<string, ast_value*> */
 } fold_t;
 
-#define parser_ctx(p)    ((p)->lex->tok.ctx)
+#define parser_ctx(p) ((p)->lex->tok.ctx)
+
 typedef struct parser_s {
     lex_file *lex;
     int      tok;
@@ -111,4 +112,7 @@ ast_expression *fold_constgen_vector(fold_t *, vec3_t);
 ast_expression *fold_constgen_string(fold_t *, const char *, bool);
 bool            fold_generate       (fold_t *, ir_builder *);
 ast_expression *fold_op             (fold_t *, const oper_info *, ast_expression**);
+
+int             fold_cond           (ir_value *, ast_function *, ast_ifthen *);
+
 #endif