Hi.
Im using Visual Studio.NET 2003 and Im clearing warnings for some source files. Im getting the following when I dont do a debug compile:
The code in question relates to this that is in the header file:Quote:
warning C4002: too many actual parameters for macro 'PrintDebuggingText'
and an example of one of the lines in the actual C file is:Code:#if DEBUGGING_TEXT_ON
extern int PrintDebuggingText(const char* t, ...);
#else
#define PrintDebuggingText(ignore)
#endif
Apparently when I dont debug, it should ignore the function, but Im getting the warning above.Code:PrintDebuggingText("Gun Position x:%d,y:%d,z:%d\n",twPtr->RestPosition.vx,twPtr->RestPosition.vy,twPtr->RestPosition.vz);
I think its to do with the (ignore) part. Is it a deprecated code now? Can I safetly delete the (ignore) including the brackets? Warning goes away if I do that but me being new to this, Im unsure if it was supposed to do something.