mojoshader_preprocessor.c
changeset 898 7f55db1ec3c1
parent 896 7a7989b18117
child 910 3ee487d85ecb
--- a/mojoshader_preprocessor.c	Fri Mar 12 09:42:24 2010 -0500
+++ b/mojoshader_preprocessor.c	Fri Mar 12 10:35:37 2010 -0500
@@ -1503,7 +1503,8 @@
             else if (t == TOKEN_IDENTIFIER)
             {
                 const Define *def = find_define_by_token(ctx);
-                if (def)
+                // don't replace macros with arguments so they replace correctly, later.
+                if ((def) && (def->paramcount == 0))
                 {
                     expr = def->definition;
                     exprlen = strlen(def->definition);