| 290 | |
| 291 | |
| 292 | int 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 | |
| 306 | static int Listing(lua_State* L, lua_Writer /*writer*/, void* /*data*/, int level) { |
nothing calls this directly
no test coverage detected