Pointers and Passing by reference
If it is possible, how do I pass a pointer to a user defined function? I tried
fsScript1->AddMethod("function FUNC(v: PInteger):Boolean",ScriptFunction,NULL,NULL);
Then from script I tri this:
{
int x;
func(&x);
}
{
int *x;
func(x);
}
{
int x;
func(@x);
}
It doesn't like any of them.
Also tried this:
fsScript1->AddMethod("function FUNC(v:^Integer):Boolean",ScriptFunction,NULL,NULL);
but this freezes the app when it gets to this line.
fsScript1->AddMethod("function FUNC(v: PInteger):Boolean",ScriptFunction,NULL,NULL);
Then from script I tri this:
{
int x;
func(&x);
}
{
int *x;
func(x);
}
{
int x;
func(@x);
}
It doesn't like any of them.
Also tried this:
fsScript1->AddMethod("function FUNC(v:^Integer):Boolean",ScriptFunction,NULL,NULL);
but this freezes the app when it gets to this line.