2004-08-11, 07:51 PM
Can you do #define in C#? I want to emulate this from C
#ifdef DEBUG
#define LOGV(string) \
Logger.Verbose(string);
#else
#define LOGV(string)
#endif
then on the compile include something like -DDEBUG
Its just useful for building in debug for testing then droping the -DDEBUG to remove in for release code,
cheers,
Colin.
#ifdef DEBUG
#define LOGV(string) \
Logger.Verbose(string);
#else
#define LOGV(string)
#endif
then on the compile include something like -DDEBUG
Its just useful for building in debug for testing then droping the -DDEBUG to remove in for release code,
cheers,
Colin.