Prev | Current Page 1047 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


There are quite a few of them, to tell the truth, but you really only need to use one of them:
value ret = val_callEx( val_this, val_func, val_args, intNumArgs, & val_exc );
It looks a little complicated, huh? This is why there are so many helper functions to call Neko functions.
This particular one is the generic helper, while the others make life simpler providing certain conditions
are met.
For val_callEx , the parameters required are as follows:
val_this : This should be a value struct containing a Neko object that you want to set as the
context for the particular executing function.
val_func : This is the value struct containing the Neko function to call.
val_args : This is a Neko array containing the value structs required as parameters for the
function call.
intNumArgs : This is the number of parameters stored in val_args .
val_exc : This is a pointer to a value struct you want to use to catch any exceptions that occur.
Passing NULL will allow the exception to filter into the C/C++ layer for handling after the
function call.


Pages:
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059