]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
qcvm -printfuns; prog_section_function.nargs is now signed as fteqcc sets builtins...
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index 258fb97a9605eac6efc9ad11103f47b4dc75cb67..66a0c451564a443aa62911fdd028ec0405f470a2 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -441,7 +441,7 @@ static bool lex_try_pragma(lex_file *lex)
         goto unroll;
     }
 
-    for (ch = lex_getch(lex); vec_size(param) < 32 && ch != ')' && ch != '\n'; ch = lex_getch(lex))
+    for (ch = lex_getch(lex); vec_size(param) < 1024 && ch != ')' && ch != '\n'; ch = lex_getch(lex))
         vec_push(param, ch);
     vec_push(param, 0);
 
@@ -969,7 +969,7 @@ int lex_do(lex_file *lex)
     }
 
     /* modelgen / spiritgen commands */
-    if (ch == '$') {
+    if (ch == '$' && !lex->flags.preprocessing) {
         const char *v;
         size_t frame;