| 145 | |
| 146 | |
| 147 | static int str_dump (lua_State *L) { |
| 148 | luaL_Buffer b; |
| 149 | luaL_checktype(L, 1, LUA_TFUNCTION); |
| 150 | lua_settop(L, 1); |
| 151 | luaL_buffinit(L,&b); |
| 152 | if (lua_dump(L, writer, &b) != 0) |
| 153 | luaL_error(L, "unable to dump given function"); |
| 154 | luaL_pushresult(&b); |
| 155 | return 1; |
| 156 | } |
| 157 | |
| 158 | |
| 159 |
nothing calls this directly
no test coverage detected