MCPcopy Create free account
hub / github.com/HyperDbg/HyperDbg / GetGlobalIdentifierVal

Function GetGlobalIdentifierVal

hyperdbg/script-engine/code/script-engine.c:4361–4374  ·  view source on GitHub ↗

* @brief Returns the integer assigned to global variable * * @param Token * @return int */

Source from the content-addressed store, hash-verified

4359 * @return int
4360 */
4361int
4362GetGlobalIdentifierVal(PSCRIPT_ENGINE_TOKEN Token)
4363{
4364 PSCRIPT_ENGINE_TOKEN CurrentToken;
4365 for (uintptr_t i = 0; i < GlobalIdTable->Pointer; i++)
4366 {
4367 CurrentToken = *(GlobalIdTable->Head + i);
4368 if (!strcmp(Token->Value, CurrentToken->Value))
4369 {
4370 return (int)i;
4371 }
4372 }
4373 return -1;
4374}
4375
4376/**
4377 * @brief Returns the integer assigned to local variable

Callers 2

GetTokenFunction · 0.85
ToSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected