| 216 | } |
| 217 | |
| 218 | static void writePushCallback(jsonsl_t jsn, |
| 219 | jsonsl_action_t action, |
| 220 | struct jsonsl_state_st *state, |
| 221 | const char *buf) noexcept |
| 222 | { |
| 223 | try { |
| 224 | converter(jsn)->push(state); |
| 225 | } catch (const FleeceException &x) { |
| 226 | converter(jsn)->gotException(x.code, x.what(), state->pos_begin); |
| 227 | } catch (...) { |
| 228 | converter(jsn)->gotException(InternalError, nullptr, state->pos_begin); |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | static void writePopCallback(jsonsl_t jsn, |
| 233 | jsonsl_action_t action, |
nothing calls this directly
no test coverage detected