Initializing help system before first use

chkinterrupt

chkinterrupt


Purpose
Check whether the model is signaled for termination.
Synopsis
int chkinterrupt(XPRMcontext ctx);
Argument
ctx 
Mosel's execution context
Return value
0 if execution can continue, XPRM_RT_STOP if model is expected to terminate.
Further information
A native function which execution time is longer than 1 or 2 seconds should call this function regularly and abort its processing as soon as possible when the return value is not 0.