MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_dump

Function lua_dump

freebsd/contrib/openzfs/module/lua/lapi.c:994–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992
993#if defined(LUA_USE_DUMP)
994LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {
995 int status;
996 TValue *o;
997 lua_lock(L);
998 api_checknelems(L, 1);
999 o = L->top - 1;
1000 if (isLfunction(o))
1001 status = luaU_dump(L, getproto(o), writer, data, 0);
1002 else
1003 status = 1;
1004 lua_unlock(L);
1005 return status;
1006}
1007#endif
1008
1009LUA_API int lua_status (lua_State *L) {

Callers 1

str_dumpFunction · 0.70

Calls 1

luaU_dumpFunction · 0.50

Tested by

no test coverage detected