P
Philipp Kraus
Hello,
I need a little bit help with this problem:
I would like to create a preprocessor function FUNC with an optional argument:
#define FUNC callme(__FUNCTION__);
#define FUNC(name) callme(name);
callme is a C++ function, so if the user is run
FUNC
the parameter of callme should be the function name and
if the user call
FUNC("test")
the function callme should get the parameter "test".
How can I do this with no and one argument?
Thanks a lot
Phil
I need a little bit help with this problem:
I would like to create a preprocessor function FUNC with an optional argument:
#define FUNC callme(__FUNCTION__);
#define FUNC(name) callme(name);
callme is a C++ function, so if the user is run
FUNC
the parameter of callme should be the function name and
if the user call
FUNC("test")
the function callme should get the parameter "test".
How can I do this with no and one argument?
Thanks a lot
Phil