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

Function str_dump

freebsd/contrib/openzfs/module/lua/lstrlib.c:185–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185static int str_dump (lua_State *L) {
186 luaL_Buffer b;
187 luaL_checktype(L, 1, LUA_TFUNCTION);
188 lua_settop(L, 1);
189 luaL_buffinit(L,&b);
190 if (lua_dump(L, writer, &b) != 0)
191 return luaL_error(L, "unable to dump given function");
192 luaL_pushresult(&b);
193 return 1;
194}
195#endif
196
197

Callers

nothing calls this directly

Calls 6

luaL_checktypeFunction · 0.70
lua_settopFunction · 0.70
luaL_buffinitFunction · 0.70
lua_dumpFunction · 0.70
luaL_errorFunction · 0.70
luaL_pushresultFunction · 0.70

Tested by

no test coverage detected