MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / str_dump

Function str_dump

ThirdParty/lua/lua/lstrlib.c:184–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

lua_tobooleanFunction · 0.85
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