macro replacement in #line directives
This commit is contained in:
parent
f706d3903a
commit
f192249c65
2 changed files with 40 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue