* @see FLuaSet::Num(...) */
| 46 | * @see FLuaSet::Num(...) |
| 47 | */ |
| 48 | static int32 TSet_Length(lua_State* L) |
| 49 | { |
| 50 | int32 NumParams = lua_gettop(L); |
| 51 | if (NumParams != 1) |
| 52 | return luaL_error(L, "invalid parameters"); |
| 53 | |
| 54 | FLuaSet* Set = (FLuaSet*)(GetCppInstanceFast(L, 1)); |
| 55 | TSet_Guard(L, Set); |
| 56 | |
| 57 | lua_pushinteger(L, Set->Num()); |
| 58 | return 1; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * @see FLuaSet::Add(...) |
nothing calls this directly
no test coverage detected