| 172 | |
| 173 | |
| 174 | static int str_dump (lua_State *L) { |
| 175 | luaL_Buffer b; |
| 176 | luaL_checktype(L, 1, LUA_TFUNCTION); |
| 177 | lua_settop(L, 1); |
| 178 | luaL_buffinit(L,&b); |
| 179 | if (lua_dump(L, writer, &b) != 0) |
| 180 | return luaL_error(L, "unable to dump given function"); |
| 181 | luaL_pushresult(&b); |
| 182 | return 1; |
| 183 | } |
| 184 | |
| 185 | |
| 186 |
nothing calls this directly
no test coverage detected