MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaL_count_global_variables

Function luaL_count_global_variables

src/Chain/libraries/glua/lapi.cpp:1450–1456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1448}
1449
1450size_t luaL_count_global_variables(lua_State *L)
1451{
1452 lua_getglobal(L, "_G");
1453 size_t keys_count = luaL_traverse_table(L, -1, nullptr, nullptr);
1454 lua_pop(L, 1);
1455 return keys_count;
1456}
1457
1458void luaL_get_global_variables(lua_State *L, std::list<std::string> *list)
1459{

Callers 3

GTESTFunction · 0.85

Calls 2

lua_getglobalFunction · 0.85
luaL_traverse_tableFunction · 0.85

Tested by

no test coverage detected