The Watcom compiler supported compile time comments, though I don’t
remember how to do it.
Can I achieve the same effect with the GCC compiler?
I.E.
#ifdef Some_Special_Option
#pragma comment “Source being compiled with Some_Special_Option”
#endif
Colin Burgess <cburgess@qnx.com> wrote:
CB > #warning
CB > Bill Caroselli wrote:
The Watcom compiler supported compile time comments, though I don’t
remember how to do it.
Can I achieve the same effect with the GCC compiler?
I.E.
#ifdef Some_Special_Option
#pragma comment “Source being compiled with Some_Special_Option”
#endif
CB > –
CB > cburgess@qnx.com
Holy Moly that was fast ! ! !
Thanks
Bill Caroselli wrote:
The Watcom compiler supported compile time comments, though I don’t
remember how to do it.
Colin Burgess wrote:
#warning
IIRC there’s also #error, which will print its message and then stop the
build, like a compile-time ASSERT().
–
Chris Herborth (cherborth@qnx.com)
Never send a monster to do the work of an evil scientist.