Skip to content
Browse files
Added error position information to MOJOSHADER_parseData.
  • Loading branch information
icculus committed Dec 10, 2008
1 parent 16caf77 commit 95e6c633d83f10b5f9bac4e7258b5dafa95f5fc7

File 4 of 5 in 95e6c63

@@ -18,7 +18,7 @@ static int do_parse(const unsigned char *buf, const int len, const char *prof)

pd = MOJOSHADER_parse(prof, buf, len, NULL, 0, NULL, NULL, NULL);
if (pd->error != NULL)
printf("ERROR: %s\n", pd->error);
printf("ERROR: (position %d) %s\n", pd->error_position, pd->error);
retval = 1;

0 comments on commit 95e6c63

Please sign in to comment.