MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / str_dump

Function str_dump

lib/lua/src/lstrlib.c:233–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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.85

Tested by

no test coverage detected