M
mosfet
Hi,
I am using a macro to declare some logging functions in debug mode and
nothing in release, something like :
MYTRACE0( "dsqdqsdqds");
MYTRACE1( "%d", 10);
MYTRACE2( "var1=%d,; var2=%d", 10, 11);
....
As you can see I need to declare a macro for each parameter number.
Would 'nt be possible to declare only one macro that could handle
different number of parameters like :
MYTRACE("qsfqsfqfs");
MYTRACE("var1=%d, var2%d", var1, var2);
I am using a macro to declare some logging functions in debug mode and
nothing in release, something like :
MYTRACE0( "dsqdqsdqds");
MYTRACE1( "%d", 10);
MYTRACE2( "var1=%d,; var2=%d", 10, 11);
....
As you can see I need to declare a macro for each parameter number.
Would 'nt be possible to declare only one macro that could handle
different number of parameters like :
MYTRACE("qsfqsfqfs");
MYTRACE("var1=%d, var2%d", var1, var2);