macro replacement in #line directives

This commit is contained in:
pommicket 2022-01-10 12:29:11 -05:00
parent f706d3903a
commit f192249c65
2 changed files with 40 additions and 29 deletions

View file

@ -3,4 +3,10 @@
f(2
3)
#define STRINGIFY(x) #x
#define MY_FILE STRINGIFY(some_file.c)
#define LINE_NUMBER 1982
#line LINE_NUMBER MY_FILE
#pragma