mojoshader_preprocessor.c
changeset 746 6b368eeaa3fc
parent 729 92cc053fbf75
child 748 818ae6582f24
equal deleted inserted replaced
745:a8013b76a727 746:6b368eeaa3fc
  1230                     const Token t = lexer(state);
  1230                     const Token t = lexer(state);
  1231                     if (t == '(')
  1231                     if (t == '(')
  1232                         paren++;
  1232                         paren++;
  1233                     else if (t == ')')
  1233                     else if (t == ')')
  1234                     {
  1234                     {
  1235                         if (i != def->paramcount-1)
  1235                         assert(paren >= 0);
       
  1236                         if (paren == 0)
  1236                         {
  1237                         {
  1237                             fail(ctx, "Too few macro arguments");
  1238                             if (i != def->paramcount-1)
  1238                             goto handle_pp_identifier_failed;
  1239                             {
       
  1240                                 fail(ctx, "Too few macro arguments");
       
  1241                                 goto handle_pp_identifier_failed;
       
  1242                             } // if
       
  1243                             break;
  1239                         } // if
  1244                         } // if
  1240 
       
  1241                         if (paren == 0)
       
  1242                             break;
       
  1243 
  1245 
  1244                         paren--;
  1246                         paren--;
  1245                     } // else if
  1247                     } // else if
  1246                     else if (t == ',')
  1248                     else if (t == ',')
  1247                     {
  1249                     {