R
Roberto Gori
Hi all,
i'm looking for a way, a tool or a macro like this:
USEFULMACRO(foo, bar, type1 arg1, type2 arg2, ..., typeN argN)
to generate the following code:
void foo(type1 arg1, type2 arg2, ..., typeN argN)
{
bar(arg1, arg2, ..., argN);
}
N is variable.
The function "foo" invokes "bar" with the same arguments list.
All the C++ types are admitted (function pointers included).
Some idea?
i'm looking for a way, a tool or a macro like this:
USEFULMACRO(foo, bar, type1 arg1, type2 arg2, ..., typeN argN)
to generate the following code:
void foo(type1 arg1, type2 arg2, ..., typeN argN)
{
bar(arg1, arg2, ..., argN);
}
N is variable.
The function "foo" invokes "bar" with the same arguments list.
All the C++ types are admitted (function pointers included).
Some idea?