This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
#line is indeed use to report the source of the code that come after the directive. I am just not sure on how to get back to the initial value of __LINE__, __FILE__ after the chunk of generated code has been included.
#define CUR_POS __LINE__ #line 500 ... you generated code here ... #line CUR_POS
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |