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

Method GetSymbolAddress

Engine/script/runtimescript.cpp:243–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243RuntimeScriptValue RuntimeScript::GetSymbolAddress(const String &symname) const
244{
245 uint32_t exp_index = _exportLookup.GetIndexOfAny(symname);
246 return (exp_index < UINT32_MAX) ? _resolvedExports[exp_index].Value : RuntimeScriptValue();
247}
248
249bool RuntimeScript::FindExportedFunction(const String &fn_name, int32_t &start_at, int32_t &num_args) const
250{

Callers 2

LinkGlobalScriptsFunction · 0.80
DoesScriptFunctionExistFunction · 0.80

Calls 2

RuntimeScriptValueClass · 0.70
GetIndexOfAnyMethod · 0.45

Tested by

no test coverage detected