MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_dump

Function lua_dump

deps/lua/src/lapi.c:875–887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873
874
875LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
876 int status;
877 TValue *o;
878 lua_lock(L);
879 api_checknelems(L, 1);
880 o = L->top - 1;
881 if (isLfunction(o))
882 status = luaU_dump(L, clvalue(o)->l.p, writer, data, 0);
883 else
884 status = 1;
885 lua_unlock(L);
886 return status;
887}
888
889
890LUA_API int lua_status (lua_State *L) {

Callers 1

str_dumpFunction · 0.85

Calls 1

luaU_dumpFunction · 0.70

Tested by

no test coverage detected