Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Report bad characters in the assembler.
  • Loading branch information
icculus committed Feb 21, 2010
1 parent f79fff0 commit 5a863b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mojoshader_assembler.c
Expand Up @@ -226,6 +226,12 @@ static Token nexttoken(Context *ctx)
break;
} // if

else if (ctx->tokenval == TOKEN_BAD_CHARS)
{
fail(ctx, "Bad characters in source file");
continue;
} // else if

else if (ctx->tokenval == TOKEN_PREPROCESSING_ERROR)
{
fail(ctx, ctx->token);
Expand Down

0 comments on commit 5a863b0

Please sign in to comment.