MCPcopy Create free account
hub / github.com/WheretIB/nullc / nullcGetGlobal

Function nullcGetGlobal

NULLC/nullc.cpp:655–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655void* nullcGetGlobal(const char* name)
656{
657 using namespace NULLC;
658 NULLC_CHECK_INITIALIZED(false);
659
660 char* mem = (char*)nullcGetVariableData(NULL);
661 if(!linker || !name || !mem)
662 return NULL;
663 unsigned int hash = GetStringHash(name);
664 for(unsigned int i = 0; i < linker->exVariables.size(); i++)
665 {
666 if(linker->exVariables[i].nameHash == hash)
667 return mem + linker->exVariables[i].offset;
668 }
669 return NULL;
670}
671
672unsigned int nullcFindFunctionIndex(const char* name)
673{

Callers 1

RunInterfaceTestsFunction · 0.85

Calls 3

nullcGetVariableDataFunction · 0.85
GetStringHashFunction · 0.70
sizeMethod · 0.45

Tested by 1

RunInterfaceTestsFunction · 0.68