scpt_run_callout — Execute or resume execution of a scriptlet callout
int **scpt_run_callout** ( | thr, | |
| | resuming, | |
| | selfref, | |
| | co, | |
| | nargs, | |
| | args
); | |
scpt_thread * <var class="pdparam">thr</var>;
int <var class="pdparam">resuming</var>;
void * <var class="pdparam">selfref</var>;
scpt_callout * <var class="pdparam">co</var>;
int <var class="pdparam">nargs</var>;
void ** <var class="pdparam">args</var>;
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Execute or resume execution of a scriptlet callout.
selfref is a reference to a scriplet table which implements the callout method.
nargs indicates the number of args references by the args array, which must correspond to the parameters defined by the callout. The convention is to pass the pointer types in directly, but take the address of non-pointer parameters.
Returns one of SCPT_OK, SCPT_YIELD or SCPT_ERR.