MCPcopy Create free account
hub / github.com/Tencent/UnLua / GetSmartPointer

Function GetSmartPointer

Plugins/UnLua/Source/UnLua/Private/UnLuaBase.cpp:334–339  ·  view source on GitHub ↗

* Get the address of smart pointer at the given stack index */

Source from the content-addressed store, hash-verified

332 * Get the address of smart pointer at the given stack index
333 */
334 void* GetSmartPointer(lua_State *L, int32 Index)
335 {
336 bool bTwoLvlPtr = false;
337 void *Userdata = ::GetUserdataFast(L, Index, &bTwoLvlPtr);
338 return Userdata;
339 }
340
341 /**
342 * Allocate user data

Callers 2

UnLuaLegacy.hFile · 0.85

Calls 1

GetUserdataFastFunction · 0.85

Tested by

no test coverage detected