Hello all,

I'm using a library in C for my project. This library defines two functions for everything it does, one for int and other for long int. To use the long version, you must define USINGLONG. Then, inside the library, the author defined a macro

Code:
#ifdef USINGLONG
#define FUNCTION(name) function_long_ ## name
#else
#define FUNCTION(name) function_int_ ## name
#endif
because the codes are the same. I have to do this too, but I would like to know if there is a C++ way of doing it.

Thank you