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