utils/mojoshader-compiler.c
changeset 885 29b6d4c4a7a2
parent 793 616980fb00bb
child 892 c45dec9f8906
equal deleted inserted replaced
884:7d3aad1c2569 885:29b6d4c4a7a2
   124     if (pd->error_count > 0)
   124     if (pd->error_count > 0)
   125     {
   125     {
   126         int i;
   126         int i;
   127         for (i = 0; i < pd->error_count; i++)
   127         for (i = 0; i < pd->error_count; i++)
   128         {
   128         {
   129             printf("%s:%d: ERROR: %s\n",
   129             fprintf(stderr, "%s:%d: ERROR: %s\n",
   130                     pd->errors[i].filename ? pd->errors[i].filename : "???",
   130                     pd->errors[i].filename ? pd->errors[i].filename : "???",
   131                     pd->errors[i].error_position,
   131                     pd->errors[i].error_position,
   132                     pd->errors[i].error);
   132                     pd->errors[i].error);
   133         } // for
   133         } // for
   134     } // if
   134     } // if
   166     if (pd->error_count > 0)
   166     if (pd->error_count > 0)
   167     {
   167     {
   168         int i;
   168         int i;
   169         for (i = 0; i < pd->error_count; i++)
   169         for (i = 0; i < pd->error_count; i++)
   170         {
   170         {
   171             printf("%s:%d: ERROR: %s\n",
   171             fprintf(stderr, "%s:%d: ERROR: %s\n",
   172                     pd->errors[i].filename ? pd->errors[i].filename : "???",
   172                     pd->errors[i].filename ? pd->errors[i].filename : "???",
   173                     pd->errors[i].error_position,
   173                     pd->errors[i].error_position,
   174                     pd->errors[i].error);
   174                     pd->errors[i].error);
   175         } // for
   175         } // for
   176     } // if
   176     } // if