[ODE] OPCODE messing with variable scope? (MSVC6)

Pierre Terdiman pierre.terdiman at novodex.com
Thu Sep 25 09:08:06 MST 2003


> Could something in OPCODE's headers be changing a compiler setting?

This is not a compiler setting, this is a #define in one of Opcode's main
headers :

  #define for if(0){} else for

I use this because some people previously complained that my code wasn't
ANSI-compliant (They were porting Opcode to other platforms/compilers, and
this well-known MSVC issue pissed them off.) This is a "well-known" fix,
BTW.

If you want to remove it, just do :

#undef for

...after including the header.


Pierre Terdiman

- Novodex AG (www.novodex.com)
- Personal : www.codercorner.com






More information about the ODE mailing list