diff --git a/include/rexy/debug_print.hpp b/include/rexy/debug_print.hpp index a4028ab..75ea306 100644 --- a/include/rexy/debug_print.hpp +++ b/include/rexy/debug_print.hpp @@ -19,13 +19,7 @@ #ifndef REXY_DEBUG_PRINT_HPP #define REXY_DEBUG_PRINT_HPP -#ifndef REXY_ENABLE_DEBUG_LEVEL - #define REXY_ENABLE_DEBUG_LEVEL 0 -#endif - -#ifndef REXY_ENABLE_COLOR_DEBUG - #define REXY_ENABLE_COLOR_DEBUG 1 -#endif +#include "detail/debug_config.hpp" //Debug output section #if REXY_ENABLE_DEBUG_LEVEL > 0 diff --git a/include/rexy/detail/debug_config.hpp b/include/rexy/detail/debug_config.hpp new file mode 100644 index 0000000..5a5efa4 --- /dev/null +++ b/include/rexy/detail/debug_config.hpp @@ -0,0 +1,26 @@ +/** + This file is a part of rexy's general purpose library + Copyright (C) 2022 rexy712 + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + + +#ifndef REXY_ENABLE_DEBUG_LEVEL + #define REXY_ENABLE_DEBUG_LEVEL 0 +#endif + +#ifndef REXY_ENABLE_COLOR_DEBUG + #define REXY_ENABLE_COLOR_DEBUG 1 +#endif