diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a48916..239e979 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,10 +45,8 @@ else() if(ENABLE_SSO) set(librexy_ENABLE_SSO 1) - target_compile_options(rexy PRIVATE -DREXY_ENABLE_SSO=1) else() set(librexy_ENABLE_SSO 0) - target_compile_options(rexy PRIVATE -DREXY_ENABLE_SSO=0) endif() if(ENABLE_PROFILING) target_compile_options(rexy PRIVATE -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls) diff --git a/include/rexy/debug_print.hpp b/include/rexy/debug_print.hpp index 75ea306..15d6426 100644 --- a/include/rexy/debug_print.hpp +++ b/include/rexy/debug_print.hpp @@ -22,15 +22,15 @@ #include "detail/debug_config.hpp" //Debug output section -#if REXY_ENABLE_DEBUG_LEVEL > 0 - #define REXY_ENABLE_DEBUG_OUTPUT +#if LIBREXY_ENABLE_DEBUG_LEVEL > 0 + #define LIBREXY_ENABLE_DEBUG_OUTPUT #endif -#if REXY_ENABLE_DEBUG_LEVEL > 2 - #define REXY_ENABLE_DEBUG_VERBOSE_OUTPUT +#if LIBREXY_ENABLE_DEBUG_LEVEL > 2 + #define LIBREXY_ENABLE_DEBUG_VERBOSE_OUTPUT #endif -#ifdef REXY_ENABLE_DEBUG_OUTPUT +#ifdef LIBREXY_ENABLE_DEBUG_OUTPUT #include //fprintf, vfprintf #include //forward @@ -58,7 +58,7 @@ }; template print(Args&&...) -> print; - #ifdef REXY_ENABLE_COLOR_DEBUG + #ifdef LIBREXY_ENABLE_COLOR_DEBUG template struct print_succ{ explicit print_succ(Args&&... args, const rexy::compat::source_location& loc = rexy::compat::source_location::current()){ @@ -132,7 +132,7 @@ public: using print::print; }; - #endif //REXY_ENABLE_COLOR_DEBUG + #endif //LIBREXY_ENABLE_COLOR_DEBUG template print_warn(Args&&...) -> print_warn; template @@ -142,7 +142,7 @@ template print_succ(Args&&...) -> print_succ; - #ifdef REXY_ENABLE_DEBUG_VERBOSE_OUTPUT + #ifdef LIBREXY_ENABLE_DEBUG_VERBOSE_OUTPUT namespace verbose{ template class print : public ::rexy::debug::print{ @@ -190,7 +190,7 @@ static constexpr inline void print_warn(...){} static constexpr inline void print_error(...){} } - #endif //REXY_ENABLE_DEBUG_VERBOSE_OUTPUT + #endif //LIBREXY_ENABLE_DEBUG_VERBOSE_OUTPUT } #else namespace rexy::debug{ @@ -207,6 +207,6 @@ static constexpr inline void print_error(...){} } } -#endif //REXY_ENABLE_DEBUG_OUTPUT +#endif //LIBREXY_ENABLE_DEBUG_OUTPUT #endif diff --git a/include/rexy/detail/debug_config.hpp b/include/rexy/detail/debug_config.hpp index 5a5efa4..6978ed5 100644 --- a/include/rexy/detail/debug_config.hpp +++ b/include/rexy/detail/debug_config.hpp @@ -17,10 +17,10 @@ */ -#ifndef REXY_ENABLE_DEBUG_LEVEL - #define REXY_ENABLE_DEBUG_LEVEL 0 +#ifndef LIBREXY_ENABLE_DEBUG_LEVEL + #define LIBREXY_ENABLE_DEBUG_LEVEL 0 #endif -#ifndef REXY_ENABLE_COLOR_DEBUG - #define REXY_ENABLE_COLOR_DEBUG 1 +#ifndef LIBREXY_ENABLE_COLOR_DEBUG + #define LIBREXY_ENABLE_COLOR_DEBUG 1 #endif