You should be able to use macros in #line statements. For example: #define LINE_NUMBER 23 #line 23 __LINE__ Should expand to 23. Daniel