| 123456789101112131415161718192021222324252627282930313233 |
- //
- // to_json.h
- // logger
- //
- // Created by Sam Jaffe on 4/4/19.
- //
- #pragma once
- #if defined(LOGGING_USE_JSON)
- #if defined(LOGGING_JSON_SJAFFE)
- #include "json/json.hpp"
- namespace logging {
- typedef json::value json;
- }
- #elif defined(LOGGING_JSON_VALUE)
- #include "json/json_fwd.h"
- namespace logging {
- typedef Json::Value json;
- }
- #endif
- namespace logging { namespace detail {
- template <typename T>
- json to_json(T const & obj);
- } }
- #else
- namespace logging {
- typedef void json;
- }
- namespace logging { namespace detail {
- template <typename T> void to_json(T const &) {}
- } }
- #endif
|