Crow
1.1
A C++ microframework for the web
Loading...
Searching...
No Matches
settings.h
1
#pragma once
2
// settings for crow
3
// TODO(ipkn) 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 - enforces section 5.2 and 6.1 of RFC6455 (only accepting masked messages from clients) */
12
//#define CROW_ENFORCE_WS_SPEC
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
#ifndef CROW_LOG_LEVEL
25
#define CROW_LOG_LEVEL 1
26
#endif
27
28
#ifndef CROW_STATIC_DIRECTORY
29
#define CROW_STATIC_DIRECTORY "static/"
30
#endif
31
#ifndef CROW_STATIC_ENDPOINT
32
#define CROW_STATIC_ENDPOINT "/static/<path>"
33
#endif
34
35
// compiler flags
36
37
#if defined(_MSC_VER)
38
#if _MSC_VER < 1900
39
#define CROW_MSVC_WORKAROUND
40
#define constexpr const
41
#define noexcept throw()
42
#endif
43
#endif
include
crow
settings.h
Generated on Fri Jan 17 2025 for Crow by
1.9.8. Dark theme by
Tilen Majerle
. Edited by
Farook Al-Sammarraie
. All rights reserved.