Electroneum
settings.h
Go to the documentation of this file.
1 #pragma once
2 // settings for crow
3 // TODO - replace with runtime config. libucl?
4 
5 /* #ifdef - enables debug mode */
6 #define CROW_ENABLE_DEBUG
7 
8 /* #ifdef - enables logging */
9 #define CROW_ENABLE_LOGGING
10 
11 /* #ifdef - enables SSL */
12 //#define CROW_ENABLE_SSL
13 
14 /* #define - specifies log level */
15 /*
16  DEBUG = 0
17  INFO = 1
18  WARNING = 2
19  ERROR = 3
20  CRITICAL = 4
21 
22  default to INFO
23 */
24 #define CROW_LOG_LEVEL 1
25 
26 
27 // compiler flags
28 #if __cplusplus >= 201402L
29 #define CROW_CAN_USE_CPP14
30 #endif
31 
32 #if defined(_MSC_VER)
33 #if _MSC_VER < 1900
34 #define CROW_MSVC_WORKAROUND
35 #define constexpr const
36 #define noexcept throw()
37 #endif
38 #endif