MCPcopy Create free account
hub / github.com/anjo76/angelscript / SetContextCallbacks

Method SetContextCallbacks

sdk/angelscript/source/as_scriptengine.cpp:978–989  ·  view source on GitHub ↗

interface

Source from the content-addressed store, hash-verified

976
977// interface
978int 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
992asIScriptContext *asCScriptEngine::RequestContext()

Callers 2

ConfigureEngineFunction · 0.80
TestFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestFunction · 0.64