I see this in KR C programming language. I really did not understand what it means. If it is line number of current source then we could use __LINE__. But what is the use of #line actually?
johndoe444
1
Posting Whiz in Training
Recommended Answers
Jump to PostIn order for the compiler to produce meaningful references to line numbers in preprocessed source, the preprocessor inserts #line directives where necessary (for example, at the beginning and after the end of included text).
When the preprocessor parses your *.c program it will create …
All 2 Replies
jephthah
1,888
Posting Maven
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
jephthah
commented:
thanks for parsing that.
+7
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.