You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #pragma once
-
- #include <cppmp.h>
- #include <boost/hana.hpp>
-
- namespace cpphibernate
- {
-
- namespace mp = ::cppmp;
- namespace hana = ::boost::hana;
-
- }
-
- #cmakedefine CPPHIBERNATE_DEBUG
- #cmakedefine CPPHIBERNATE_HAS_CPPLOGGING
- #cmakedefine CPPHIBERNATE_HAS_CPPMARIADB
-
- #ifdef CPPHIBERNATE_HAS_CPPLOGGING
- #include <cpplogging/interface.h>
- #define cpphibernate_log(p_level) \
- cpplogging_global_log(p_level)
- #else
- #include <iostream>
- #define cpphibernate_log(p_level) \
- ::std::cout << #p_level << ' ' << __FILE__ << ':' << __LINE__ << " - "
- #endif
-
- #ifdef CPPHIBERNATE_DEBUG
- #define cpphibernate_log_debug(...) \
- cpphibernate_log(debug) << __VA_ARGS__
- #else
- #define cpphibernate_log_debug(...) \
- do { } while (0)
- #endif
|