MCPcopy Create free account
hub / github.com/PlutoLang/Pluto / luaB_exportvar

Function luaB_exportvar

src/lbaselib.cpp:772–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772static int luaB_exportvar (lua_State *L) {
773 luaL_checkany(L, 1);
774 std::string& dump = *pluto_newclassinst(L, std::string);
775 std::unordered_set<Table*>& parents = *pluto_newclassinst(L, std::unordered_set<Table*>);
776 lua_pushvalue(L, 1);
777 if (ttistable(index2value(L, -1)))
778 parents.emplace(hvalue(index2value(L, -1)));
779 luaB_dumpvar_impl(L, dump, 1, parents, true);
780 pluto_pushstring(L, dump);
781 return 1;
782}
783
784
785static int luaB_compareversions (lua_State *L) {

Callers

nothing calls this directly

Calls 5

luaL_checkanyFunction · 0.85
lua_pushvalueFunction · 0.85
index2valueFunction · 0.85
luaB_dumpvar_implFunction · 0.85
pluto_pushstringFunction · 0.85

Tested by

no test coverage detected