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

Method UpdateInstructionPointer

NULLC/Executor.cpp:2387–2398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2385}
2386
2387void Executor::UpdateInstructionPointer()
2388{
2389 if(!cmdBase || !fcallStack.size() || cmdBase == &exLinker->exCode[0])
2390 return;
2391 for(unsigned int i = 0; i < fcallStack.size(); i++)
2392 {
2393 int currentPos = int(fcallStack[i] - cmdBase);
2394 assert(currentPos >= 0);
2395 fcallStack[i] = &exLinker->exCode[0] + currentPos;
2396 }
2397 cmdBase = &exLinker->exCode[0];
2398}

Callers 1

nullcLinkCodeFunction · 0.80

Calls 2

assertFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected