| 20 | #include "json.h" |
| 21 | |
| 22 | class cJsonStringResult : public StringResult<cJsonStringResult> { |
| 23 | public: |
| 24 | std::string_view str_impl() const { return s; } |
| 25 | cJsonStringResult() : s(nullptr) {} |
| 26 | ~cJsonStringResult() { cJSON_free(s); } |
| 27 | char *s; |
| 28 | }; |
| 29 | |
| 30 | class cJsonParseResult |
| 31 | : public ParseResult<cJsonParseResult, cJsonStringResult> { |
nothing calls this directly
no outgoing calls
no test coverage detected