interface
| 976 | |
| 977 | // interface |
| 978 | int asCScriptEngine::SetContextCallbacks(asREQUESTCONTEXTFUNC_t requestCtx, asRETURNCONTEXTFUNC_t returnCtx, void *param) |
| 979 | { |
| 980 | // Both callbacks or neither must be set |
| 981 | if( (requestCtx == 0 && returnCtx != 0) || (requestCtx != 0 && returnCtx == 0) ) |
| 982 | return asINVALID_ARG; |
| 983 | |
| 984 | requestCtxFunc = requestCtx; |
| 985 | returnCtxFunc = returnCtx; |
| 986 | ctxCallbackParam = param; |
| 987 | |
| 988 | return 0; |
| 989 | } |
| 990 | |
| 991 | // interface |
| 992 | asIScriptContext *asCScriptEngine::RequestContext() |
no outgoing calls