MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / str_dump

Function str_dump

extlibs/lua/src/lstrlib.c:232–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231
232static int str_dump (lua_State *L) {
233 struct str_Writer state;
234 int strip = lua_toboolean(L, 2);
235 luaL_checktype(L, 1, LUA_TFUNCTION);
236 lua_settop(L, 1); /* ensure function is on the top of the stack */
237 state.init = 0;
238 if (lua_dump(L, writer, &state, strip) != 0)
239 return luaL_error(L, "unable to dump given function");
240 luaL_pushresult(&state.B);
241 return 1;
242}
243
244
245

Callers

nothing calls this directly

Calls 6

lua_tobooleanFunction · 0.85
luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
lua_dumpFunction · 0.85
luaL_errorFunction · 0.85
luaL_pushresultFunction · 0.70

Tested by

no test coverage detected