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

Function TSet_Guard

Plugins/UnLua/Source/UnLua/Private/BaseLib/LuaLib_Set.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#include "Containers/LuaSet.h"
18
19static FORCEINLINE void TSet_Guard(lua_State* L, FLuaSet* Set)
20{
21 if (!Set)
22 luaL_error(L, "invalid TSet");
23
24 if (!Set->ElementInterface->IsValid())
25 luaL_error(L, TCHAR_TO_UTF8(*FString::Printf(TEXT("invalid TSet element type:%s"), *Set->ElementInterface->GetName())));
26}
27
28static int32 TSet_New(lua_State* L)
29{

Callers 7

TSet_LengthFunction · 0.85
TSet_AddFunction · 0.85
TSet_RemoveFunction · 0.85
TSet_ContainsFunction · 0.85
TSet_ClearFunction · 0.85
TSet_ToArrayFunction · 0.85
TSet_ToTableFunction · 0.85

Calls 3

luaL_errorFunction · 0.85
IsValidMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected