i want to know more about #line in cpp. is it is a preprocessor..?what action it will do...?
i want to know more about #line in cpp. is it is a preprocessor..?what action it will do...?
It's a preprocessor/compiler instruction that tells the compiler what line it is on, overriding its internal count. It's used mostly by tools that generate C or C++ code, such as lex and yacc, so that error messages from the compiler relate back to the original source file, not the generated code.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law