Lugdunum  0.1.0
Common.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <lug/System/Export.hpp>
4 
5 #ifndef WIN32_LEAN_AND_MEAN
6  #define WIN32_LEAN_AND_MEAN
7 #endif
8 #define FMT_HEADER_ONLY
9 #if defined(False)
10  #undef False
11 
12  #include <fmt/format.h>
13  #include <fmt/ostream.h>
14 
15  #define False 0
16 #else
17  #include <fmt/format.h>
18  #include <fmt/ostream.h>
19 #endif
20 
21 #define LUG_LOG_LEVELS(PROCESS) \
22  PROCESS(Debug) \
23  PROCESS(Info) \
24  PROCESS(Warning) \
25  PROCESS(Error) \
26  PROCESS(Fatal) \
27  PROCESS(Assert) \
28  PROCESS(Off) \
29 
30 namespace lug {
31 namespace System {
32 namespace Logger {
33 
34 #define LUG_LOG_ENUM(CHANNEL) CHANNEL,
35 enum class Level : uint8_t {
37 };
38 #undef LUG_LOG_ENUM
39 
40 LUG_SYSTEM_API std::ostream& operator<<(std::ostream& os, Level level);
41 
42 } // Logger
43 } // System
44 } // lug
std::ostream & operator<<(std::ostream &os, Level level)
Definition: Logger.cpp:10
#define LUG_SYSTEM_API
Definition: Export.hpp:11
#define LUG_LOG_ENUM(CHANNEL)
Definition: Common.hpp:34
#define LUG_LOG_LEVELS(PROCESS)
Definition: Common.hpp:21