From: Anton V. <va...@is...> - 2000-03-06 13:23:23
|
Hi all! It's me again :) I've found a preprocessor bug in sdcc (CVS snapshot of March 6 as well as 2.1.9Ga). The following program: #define A 1 #if A #endif void main() {} Generates the following: ;....... ; line.c 5 ; ----------------------------------------- ; function main ; ----------------------------------------- _main: ;....... Line number should be 6 instead. But if I'm using #ifdef instead of #if - everything is Ok. This bug can seriously confuse people when debugging in sdcdb (wrong line numbers information). Best regards, Anton Voloshin mailto:va...@is... P.S. There is no error message if I'm omitting #endif - this is probably a bug too |