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

Method FindVar

tests/TestBase.cpp:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void* Tests::FindVar(const char* name)
61{
62 for(unsigned int i = 0; i < variableCount; i++)
63 {
64 if(strcmp(name, symbols + varInfo[i].offsetToName) == 0)
65 return (void*)(varData + varInfo[i].offset);
66 }
67 return (void*)varData;
68}
69
70bool Tests::RunCode(const char *code, unsigned int executor, const char* expected, const char* message, bool execShouldFail)
71{

Callers

nothing calls this directly

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected