* @see FLuaMap::Num(...) */
| 110 | * @see FLuaMap::Num(...) |
| 111 | */ |
| 112 | static int32 TMap_Length(lua_State* L) |
| 113 | { |
| 114 | int32 NumParams = lua_gettop(L); |
| 115 | if (NumParams != 1) |
| 116 | return luaL_error(L, "invalid parameters"); |
| 117 | |
| 118 | FLuaMap* Map = (FLuaMap*)(GetCppInstanceFast(L, 1)); |
| 119 | TMap_Guard(L, Map); |
| 120 | |
| 121 | lua_pushinteger(L, Map->Num()); |
| 122 | return 1; |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * @see FLuaMap::Add(...) |
nothing calls this directly
no test coverage detected