MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / str_dump

Function str_dump

third-party/lua-5.5.0/src/lstrlib.c:227–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225
226
227static int str_dump (lua_State *L) {
228 struct str_Writer state;
229 int strip = lua_toboolean(L, 2);
230 luaL_argcheck(L, lua_type(L, 1) == LUA_TFUNCTION && !lua_iscfunction(L, 1),
231 1, "Lua function expected");
232 /* ensure function is on the top of the stack and vacate slot 1 */
233 lua_pushvalue(L, 1);
234 state.init = 0;
235 lua_dump(L, writer, &state, strip);
236 lua_settop(L, 1); /* leave final result on top */
237 return 1;
238}
239
240
241

Callers

nothing calls this directly

Calls 6

lua_tobooleanFunction · 0.70
lua_typeFunction · 0.70
lua_iscfunctionFunction · 0.70
lua_pushvalueFunction · 0.70
lua_dumpFunction · 0.70
lua_settopFunction · 0.70

Tested by

no test coverage detected