MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / dump

Method dump

src/lua/LuaExtras.cpp:292–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290
291
292int LuaExtras::dump(lua_State* L) {
293 luaL_Buffer b;
294 luaL_checktype(L, 1, LUA_TFUNCTION);
295 const bool strip = lua_isboolean(L, 2) && lua_tobool(L, 2);
296 lua_settop(L, 1);
297 luaL_buffinit(L, &b);
298 if (Dump(L, Writer, &b, strip) != 0) {
299 luaL_error(L, "unable to dump given function");
300 }
301 luaL_pushresult(&b);
302 return 1;
303}
304
305
306static int Listing(lua_State* L, lua_Writer /*writer*/, void* /*data*/, int level) {

Callers

nothing calls this directly

Calls 7

lua_toboolFunction · 0.85
DumpFunction · 0.85
luaL_checktypeFunction · 0.50
lua_settopFunction · 0.50
luaL_buffinitFunction · 0.50
luaL_errorFunction · 0.50
luaL_pushresultFunction · 0.50

Tested by

no test coverage detected