Okay, I was wondering if anyone knew how to do variable arguments with macros, so i can do this:
void Log_WriteFull (const char *Filename, const char *Function, const int32 Line, const char *Text, ...);
#define LOG (x, y) Log_WriteFull (__FILE__, __FUNCTION__, __LINE__, x, y)
LOG ("%s %d %s %d", SomeString, SomeInt, SomeOtherString, SomeOtherInt);
and not have it report back that I have too many arguments for the macro. Also, If i do this:
LOG ("This is a log entry with no extra arguments");
it won''t whine at me about not having enough arguments.
any ideas?