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

Function GetStackArgsSize

extensions/dhooks/vhook.cpp:334–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334size_t GetStackArgsSize(DHooksCallback *dg)
335{
336 size_t res = GetParamsSize(dg);
337#ifdef WIN32
338 if(dg->returnType == ReturnType_Vector)//Account for result vector ptr.
339#else
340 if(dg->returnType == ReturnType_Vector || dg->returnType == ReturnType_String)
341#endif
342 {
343 res += OBJECT_OFFSET;
344 }
345 return res;
346}
347
348HookReturnStruct::~HookReturnStruct()
349{

Callers 2

vhook.cppFile · 0.85
Callback_stringtFunction · 0.85

Calls 1

GetParamsSizeFunction · 0.85

Tested by

no test coverage detected