Hi!

17-Янв-2005 18:34 [EMAIL PROTECTED] (Kenneth Davis) wrote to
[EMAIL PROTECTED]:

> tc debug build fix
> +++ task.c    17 Jan 2005 18:34:10 -0000      1.44.2.5
> -#if DEBUG
> +#ifdef DEBUG

______________O\_/_________________________________\_/O______________
#if TST
# error 1
#endif
_____________________________________________________________________
              O/~\                                 /~\O
______________O\_/_________________________________\_/O______________
>bcc -c -DTST tst.cpp
Borland C++  Version 3.1 Copyright (c) 1992 Borland International
>Error t.cpp 1: Expression syntax
Fatal t.cpp 2: Error directive: 1
*** 2 errors in Compile ***
_____________________________________________________________________
              O/~\                                 /~\O

Fix:

#if TST+0
-------^^

PS: I don't understand, what the trouble was with debugging? Old code was
includes conditional part when DEBUG is defined, new code includes code only
when DEBUG is defined AND not zero. Ie. -DDEBUG now not enough to include
those conditional part.




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freedos-kernel mailing list
Freedos-kernel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to