MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / str_dump

Function str_dump

Source/Misc/lua/src/lua.c:13824–13833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13822
13823
13824static int str_dump (lua_State *L) {
13825luaL_Buffer b;
13826luaL_checktype(L, 1, LUA_TFUNCTION);
13827lua_settop(L, 1);
13828luaL_buffinit(L,&b);
13829if (lua_dump(L, writer, &b) != 0)
13830luaL_error(L, "unable to dump given function");
13831luaL_pushresult(&b);
13832return 1;
13833}
13834
13835
13836

Callers

nothing calls this directly

Calls 6

luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
luaL_buffinitFunction · 0.85
lua_dumpFunction · 0.85
luaL_errorFunction · 0.85
luaL_pushresultFunction · 0.85

Tested by

no test coverage detected