MCPcopy Create free account
hub / github.com/adventuregamestudio/ags / DoesScriptFunctionExist

Function DoesScriptFunctionExist

Engine/script/script.cpp:309–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309bool DoesScriptFunctionExist(const RuntimeScript *script, const String &fn_name)
310{
311 return script->GetSymbolAddress(fn_name).Type == kScValCodePtr;
312}
313
314bool DoesScriptFunctionExistInModules(const String &fn_name)
315{

Callers 4

test_interaction_handlerFunction · 0.85
PrepareTextScriptFunction · 0.85

Calls 1

GetSymbolAddressMethod · 0.80

Tested by 1

test_interaction_handlerFunction · 0.68