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

Function RewriteX86

NULLC/includes/dynamic.cpp:9–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 Linker *linker = NULL;
8
9 void RewriteX86(unsigned dest, unsigned src)
10 {
11 ExternFuncInfo &destFunc = linker->exFunctions[dest];
12 ExternFuncInfo &srcFunc = linker->exFunctions[src];
13 linker->UpdateFunctionPointer(dest, src);
14 if(srcFunc.funcPtr && !destFunc.funcPtr)
15 {
16 nullcThrowError("Internal function cannot be overridden with external function on x86");
17 return;
18 }
19 if(destFunc.funcPtr && !srcFunc.funcPtr)
20 {
21 nullcThrowError("External function cannot be overridden with internal function on x86");
22 return;
23 }
24 }
25
26 void OverrideFunction(NULLCRef dest, NULLCRef src)
27 {

Callers 2

OverrideFunctionFunction · 0.85
OverrideFunction · 0.85

Calls 2

UpdateFunctionPointerMethod · 0.80
nullcThrowErrorFunction · 0.50

Tested by

no test coverage detected