Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Jul 28, 2024
1 parent cf6c1ed commit 187c54a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,10 @@ static char *read_assertion_from_file(Location error_location, const Token *star
int c = fgetc(f);
if (c == EOF || c == '\r' || c == '\n') {
printf("FAIL 3 fgetc %d\n", c);
printf("File name: %s\n", error_location.filename);
printf("Start offset: %ld\n", ostart);
printf("End offset: %ld\n", oend);
printf("The i variable: %ld\n", i);
goto error;
}
Append(&result, (char)c);
Expand Down

0 comments on commit 187c54a

Please sign in to comment.