Skip to content

Commit

Permalink
Merge pull request #84 from ismagilli/fix_genf
Browse files Browse the repository at this point in the history
FIX: genf macro lineno
  • Loading branch information
rexim authored Feb 28, 2024
2 parents 4a10f33 + 8831180 commit 07935b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nob.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void log_config(Nob_Log_Level level)
#define genf(out, ...) \
do { \
fprintf((out), __VA_ARGS__); \
fprintf((out), " // %s:%d\n", __FILE__, __LINE__ - 1); \
fprintf((out), " // %s:%d\n", __FILE__, __LINE__); \
} while(0)

typedef struct {
Expand Down

0 comments on commit 07935b1

Please sign in to comment.