Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
3be20204
Commit
3be20204
authored
Jul 17, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace clumsy flag management with #cmakedefine
parent
423f372e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
20 deletions
+7
-20
CMakeLists.txt
CMakeLists.txt
+2
-4
cmake/build_config.hpp.in
cmake/build_config.hpp.in
+3
-11
libcaf_core/caf/logger.hpp
libcaf_core/caf/logger.hpp
+1
-1
libcaf_core/src/logger.cpp
libcaf_core/src/logger.cpp
+1
-4
No files found.
CMakeLists.txt
View file @
3be20204
...
...
@@ -368,10 +368,8 @@ endif()
# configure build_config.hpp header #
################################################################################
if
(
CAF_LOG_LEVEL
)
set
(
CAF_LOG_LEVEL_INT
${
CAF_LOG_LEVEL
}
)
else
()
set
(
CAF_LOG_LEVEL_INT -1
)
if
(
NOT CAF_LOG_LEVEL
)
set
(
CAF_LOG_LEVEL
"-1"
)
endif
()
macro
(
to_int_value name
)
...
...
cmake/build_config.hpp.in
View file @
3be20204
...
...
@@ -21,19 +21,11 @@
// this header is auto-generated by CMake
#if @CAF_LOG_LEVEL_INT@ != -1
#define CAF_LOG_LEVEL @CAF_LOG_LEVEL@
#endif
#if @CAF_NO_MEM_MANAGEMENT_INT@ != -1
#define CAF_NO_MEM_MANAGEMENT
#endif
#cmakedefine CAF_NO_MEM_MANAGEMENT
#if @CAF_ENABLE_RUNTIME_CHECKS_INT@ != -1
#define CAF_ENABLE_RUNTIME_CHECKS
#endif
#cmakedefine CAF_ENABLE_RUNTIME_CHECKS
#if @CAF_NO_EXCEPTIONS_INT@ != -1
#define CAF_NO_EXCEPTIONS
#endif
#cmakedefine CAF_NO_EXCEPTIONS
libcaf_core/caf/logger.hpp
View file @
3be20204
...
...
@@ -360,7 +360,7 @@ bool operator==(const logger::field& x, const logger::field& y);
#define CAF_LOG_COMPONENT "caf"
#endif // CAF_LOG_COMPONENT
#if
ndef CAF_LOG_LEVEL
#if
CAF_LOG_LEVEL == -1
#define CAF_LOG_IMPL(unused1, unused2, unused3)
...
...
libcaf_core/src/logger.cpp
View file @
3be20204
...
...
@@ -53,10 +53,7 @@ constexpr const char* log_level_name[] = {
"TRACE"
};
#ifdef CAF_LOG_LEVEL
static_assert
(
CAF_LOG_LEVEL
>=
0
&&
CAF_LOG_LEVEL
<=
4
,
"assertion: 0 <= CAF_LOG_LEVEL <= 4"
);
#if CAF_LOG_LEVEL >= 0
#if defined(CAF_NO_THREAD_LOCAL)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment