MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / CreateVirtualCall

Method CreateVirtualCall

extensions/bintools/CallMaker.cpp:169–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169ICallWrapper *CallMaker2::CreateVirtualCall(const SourceHook::ProtoInfo *protoInfo,
170 const SourceHook::MemFuncInfo *info)
171{
172#ifdef KE_ARCH_X86
173 CallWrapper *pWrapper = new CallWrapper(protoInfo);
174 pWrapper->SetMemFuncInfo(info);
175
176 void *addr = JIT_CallCompile(pWrapper, FuncAddr_VTable);
177 pWrapper->SetCodeBaseAddr(addr);
178
179 return pWrapper;
180#else
181 return nullptr;
182#endif
183}
184
185ICallWrapper *CallMaker2::CreateCall(void *address, const SourceHook::ProtoInfo *protoInfo,
186 const PassInfo *retInfo, const PassInfo paramInfo[],

Callers 1

CreateVCallMethod · 0.80

Calls 3

JIT_CallCompileFunction · 0.85
SetMemFuncInfoMethod · 0.80
SetCodeBaseAddrMethod · 0.80

Tested by

no test coverage detected