mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
53 lines
996 B
C
53 lines
996 B
C
#pragma once
|
|
// settings for crow
|
|
// TODO - replace with runtime config. libucl?
|
|
|
|
/* #ifdef - enables debug mode */
|
|
//#define CROW_ENABLE_DEBUG
|
|
|
|
/* #ifdef - enables logging */
|
|
#define CROW_ENABLE_LOGGING
|
|
|
|
/* #ifdef - enables ssl */
|
|
//#define CROW_ENABLE_SSL
|
|
|
|
/* #define - specifies log level */
|
|
/*
|
|
Debug = 0
|
|
Info = 1
|
|
Warning = 2
|
|
Error = 3
|
|
Critical = 4
|
|
|
|
default to INFO
|
|
*/
|
|
#ifndef CROW_LOG_LEVEL
|
|
#define CROW_LOG_LEVEL 1
|
|
#endif
|
|
|
|
#ifndef CROW_STATIC_DIRECTORY
|
|
#define CROW_STATIC_DIRECTORY "static/"
|
|
#endif
|
|
#ifndef CROW_STATIC_ENDPOINT
|
|
#define CROW_STATIC_ENDPOINT "/static/<path>"
|
|
#endif
|
|
|
|
// compiler flags
|
|
#if defined(_MSVC_LANG) && _MSVC_LANG >= 201402L
|
|
#define CROW_CAN_USE_CPP14
|
|
#endif
|
|
#if __cplusplus >= 201402L
|
|
#define CROW_CAN_USE_CPP14
|
|
#endif
|
|
#if __cplusplus >= 201703L
|
|
#define CROW_CAN_USE_CPP17
|
|
#endif
|
|
|
|
#if defined(_MSC_VER)
|
|
#if _MSC_VER < 1900
|
|
#define CROW_MSVC_WORKAROUND
|
|
#define constexpr const
|
|
#define noexcept throw()
|
|
#endif
|
|
#endif
|