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