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

Method FixupFunction

NULLC/Executor.cpp:2134–2147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2132}
2133
2134void Executor::FixupFunction(char* ptr)
2135{
2136 NULLCFuncPtr *fPtr = (NULLCFuncPtr*)ptr;
2137 // If there's no context, there's nothing to check
2138 if(!fPtr->context)
2139 return;
2140 const ExternFuncInfo &func = exFunctions[fPtr->id];
2141 // If context is "this" pointer
2142 if(func.parentType != ~0u)
2143 {
2144 const ExternTypeInfo &classType = exTypes[func.parentType];
2145 FixupPointer((char*)&fPtr->context, classType);
2146 }
2147}
2148
2149void Executor::FixupVariable(char* ptr, const ExternTypeInfo& type)
2150{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected