Separate debug defines from debug_print to allow using them in other stuff
This commit is contained in:
parent
56d680e036
commit
a2ba8b9eb6
@ -19,13 +19,7 @@
|
|||||||
#ifndef REXY_DEBUG_PRINT_HPP
|
#ifndef REXY_DEBUG_PRINT_HPP
|
||||||
#define REXY_DEBUG_PRINT_HPP
|
#define REXY_DEBUG_PRINT_HPP
|
||||||
|
|
||||||
#ifndef REXY_ENABLE_DEBUG_LEVEL
|
#include "detail/debug_config.hpp"
|
||||||
#define REXY_ENABLE_DEBUG_LEVEL 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef REXY_ENABLE_COLOR_DEBUG
|
|
||||||
#define REXY_ENABLE_COLOR_DEBUG 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//Debug output section
|
//Debug output section
|
||||||
#if REXY_ENABLE_DEBUG_LEVEL > 0
|
#if REXY_ENABLE_DEBUG_LEVEL > 0
|
||||||
|
|||||||
26
include/rexy/detail/debug_config.hpp
Normal file
26
include/rexy/detail/debug_config.hpp
Normal file
@ -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 <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef REXY_ENABLE_DEBUG_LEVEL
|
||||||
|
#define REXY_ENABLE_DEBUG_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef REXY_ENABLE_COLOR_DEBUG
|
||||||
|
#define REXY_ENABLE_COLOR_DEBUG 1
|
||||||
|
#endif
|
||||||
Loading…
x
Reference in New Issue
Block a user