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

Method GetVarPtr

Source/Scripting/angelscript/asmodule.cpp:1285–1288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1283}
1284
1285void* ASModule::GetVarPtr(const char* name) {
1286 int index = module_->GetGlobalVarIndexByName(name);
1287 return module_->GetAddressOfGlobalVar(index);
1288}
1289
1290void* ASModule::GetVarPtrCache(const char* name) {
1291 std::map<void*, void*>::iterator iter = fast_var_ptr_map.find((void*)name);

Callers 15

ASHasVarMethod · 0.45
ASGetIntVarMethod · 0.45
ASGetFloatVarMethod · 0.45
ASGetBoolVarMethod · 0.45
ASSetIntVarMethod · 0.45
ASSetFloatVarMethod · 0.45
ASSetBoolVarMethod · 0.45
ASHasVarMethod · 0.45
ASGetIntVarMethod · 0.45
ASGetFloatVarMethod · 0.45
ASGetBoolVarMethod · 0.45
ASSetIntVarMethod · 0.45

Calls 2

GetAddressOfGlobalVarMethod · 0.80

Tested by

no test coverage detected