| 182 | |
| 183 | |
| 184 | static int str_dump (lua_State *L) { |
| 185 | luaL_Buffer b; |
| 186 | int strip = lua_toboolean(L, 2); |
| 187 | luaL_checktype(L, 1, LUA_TFUNCTION); |
| 188 | lua_settop(L, 1); |
| 189 | luaL_buffinit(L,&b); |
| 190 | if (lua_dump(L, writer, &b, strip) != 0) |
| 191 | return luaL_error(L, "unable to dump given function"); |
| 192 | luaL_pushresult(&b); |
| 193 | return 1; |
| 194 | } |
| 195 | |
| 196 | |
| 197 |
nothing calls this directly
no test coverage detected