I do it like this:Banshaku wrote:without passing parameter from the C side and how much it would be worth it.
Code: Select all
void MyFunction(int a, int b, int c);Code: Select all
int MyFunction_A;
int MyFunction_B;
int MyFunction_C;
void MyFunction_(void);
#define MyFunction(a, b, c)\
{\
MyFunction_A = a;\
MyFunction_B = b;\
MyFunction_C = c;\
MyFunction_();\
}