Pointers and Passing by reference

edited 3:55AM in FastScript
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.

Leave a Comment