SyntaxFix
Write A Post
Hire A Developer
Questions
Use __LINE__ (that's double-underscore LINE double-underscore), the preprocessor will replace it with the line number on which it is encountered.
__LINE__