I want to use two functions in my macro func1.cxx which likes:
type func2(arg3, arg4);
void func1(arg1, arg2){
something;
some = func2(arg3, arg4);
}
type func2(arg3, arg4){
otherthings;
return some;
}
But it doesn’t work and gives the error You are probably missing the definition of func2(arg3, arg4)
How can I fix this? I tried different ways to declare func2 inside and outside fun1 but none of them worked.
This method I have already tried and didn’t work.
void because I just casually put a type for the return type, of course it’s not void in my real code…just to make the example simple