Hello! I need to do the same thing in my code that Boost.Python does. Namely, this:
Code:
int Function(int Var1, int Var2, char Var3, long Var4)
{
....
}
int Function2(int Var1)
{
....
}
char Function3(bool Bar1)
{
....
}
InitFunctions()
{
def("Function", Function);
def("Function2", Function2);
def("Function3", Function3);
}
I then need to be able to loop through the list of function names (strings) and call them acordingly.
Example:
Code:
int MyVar, MyVar2;
char MyVar3;
long MyVar4;
CallFunction("Function", MyVar, MyVar2, MyVar3, MyVar4);
I am using C++, so I can use templates, macros, what ever. I just don't know where to even start, so please help me! I am very stuck in my code until I figure this out. Thanks!