mojoshader_preprocessor.c
changeset 898 7f55db1ec3c1
parent 896 7a7989b18117
child 910 3ee487d85ecb
equal deleted inserted replaced
897:c1b1c55d292a 898:7f55db1ec3c1
  1501             } // else if
  1501             } // else if
  1502 
  1502 
  1503             else if (t == TOKEN_IDENTIFIER)
  1503             else if (t == TOKEN_IDENTIFIER)
  1504             {
  1504             {
  1505                 const Define *def = find_define_by_token(ctx);
  1505                 const Define *def = find_define_by_token(ctx);
  1506                 if (def)
  1506                 // don't replace macros with arguments so they replace correctly, later.
       
  1507                 if ((def) && (def->paramcount == 0))
  1507                 {
  1508                 {
  1508                     expr = def->definition;
  1509                     expr = def->definition;
  1509                     exprlen = strlen(def->definition);
  1510                     exprlen = strlen(def->definition);
  1510                 } // if
  1511                 } // if
  1511             } // else if
  1512             } // else if