![]() |
|
error line numbers affected by #if(n)def - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15) +---- Thread: error line numbers affected by #if(n)def (/showthread.php?tid=200) |
error line numbers affected by #if(n)def - programandala.net - 2010-04-16 I realized the line numbers shown in the error reports don't include the lines discarded by #ifdef and #ifndef. I mean, the lines of the source discarded by #ifdef and #ifndef are not counted. I guess the compiler discards those parts before doing the next pass, but the annoyng effect is the lines of errors and warnings are not real. This is a problem, mainly with long programs where conditional compilation is used a lot. |