Is it possible to forward a parameter list to create a function declaration? The following pseudo-macro is given:
#define FUNCTION_DECLARATION(function_name, ...) \
void function_name(__VA_ARGS__) \
{ \
other_function_but_gets_the_same_params(__VA_ARGS__); \
}
I want to create a function declaration using something similar to the following syntax:
FUNCTION_DECLARATION(MyFunction, char, char, int)
Aucun commentaire:
Enregistrer un commentaire