MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetActiveASContext

Function GetActiveASContext

Source/Scripting/angelscript/asfuncs.cpp:114–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112extern Config default_config;
113
114static ASContext* GetActiveASContext() {
115 asIScriptContext* ctx = asGetActiveContext();
116 if (ctx) {
117 return (ASContext*)ctx->GetUserData(0);
118 } else {
119 return NULL;
120 }
121}
122
123void MessageCallback(const asSMessageInfo* msg, void* param) {
124 const char* type = "ERR ";

Callers 6

ASDebugTextFunction · 0.85
ASCallStateMPCallbackFunction · 0.85

Calls 1

GetUserDataMethod · 0.45

Tested by

no test coverage detected