2014-09-14 11:04:27 +00:00
|
|
|
#pragma once
|
2014-05-20 16:17:56 +00:00
|
|
|
// settings for crow
|
2014-05-20 22:30:51 +00:00
|
|
|
// TODO - replace with runtime config. libucl?
|
2014-05-20 16:17:56 +00:00
|
|
|
|
|
|
|
/* #ifdef - enables debug mode */
|
|
|
|
#define CROW_ENABLE_DEBUG
|
|
|
|
|
|
|
|
/* #ifdef - enables logging */
|
2014-05-20 22:30:51 +00:00
|
|
|
#define CROW_ENABLE_LOGGING
|
|
|
|
|
2015-09-20 13:06:00 +00:00
|
|
|
/* #ifdef - enables SSL */
|
|
|
|
//#define CROW_ENABLE_SSL
|
|
|
|
|
2014-05-20 22:30:51 +00:00
|
|
|
/* #define - specifies log level */
|
|
|
|
/*
|
2016-08-27 05:15:16 +00:00
|
|
|
Debug = 0
|
|
|
|
Info = 1
|
|
|
|
Warning = 2
|
|
|
|
Error = 3
|
|
|
|
Critical = 4
|
2014-09-12 03:16:37 +00:00
|
|
|
|
|
|
|
default to INFO
|
2014-05-20 22:30:51 +00:00
|
|
|
*/
|
2014-09-12 03:16:37 +00:00
|
|
|
#define CROW_LOG_LEVEL 1
|
2015-02-20 02:47:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
// compiler flags
|
|
|
|
#if __cplusplus >= 201402L
|
|
|
|
#define CROW_CAN_USE_CPP14
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(_MSC_VER)
|
|
|
|
#if _MSC_VER < 1900
|
|
|
|
#define CROW_MSVC_WORKAROUND
|
|
|
|
#define constexpr const
|
|
|
|
#define noexcept throw()
|
|
|
|
#endif
|
|
|
|
#endif
|