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