跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

Output code changes when blank lines are inserted. (CC-RL)

Last Updated:06/14/2017

Question:

I am using the RL78 compiler CC-RL. The output code changes when blank lines are added in source programs. I suppose blank lines do not affect the result of compilation. Why does this occur?

Answer:

Compilers have a predefined macro: __LINE__.
In your case the “__LINE__” may have been described in a source file.
“__LINE__” is the line number of the source file. Therefore, if the line number in which “__LINE__” is described changes, the result of compilation will be affected.

Suitable Products
e² studio
CS+ (formerly CubeSuite+)
C Compiler Package for RL78 Family