| 220 | |
| 221 | |
| 222 | static int writer (lua_State *L, const void *b, size_t size, void *ud) { |
| 223 | struct str_Writer *state = (struct str_Writer *)ud; |
| 224 | if (!state->init) { |
| 225 | state->init = 1; |
| 226 | luaL_buffinit(L, &state->B); |
| 227 | } |
| 228 | luaL_addlstring(&state->B, (const char *)b, size); |
| 229 | return 0; |
| 230 | } |
| 231 | |
| 232 | |
| 233 | static int str_dump (lua_State *L) { |
nothing calls this directly
no test coverage detected