diff options
author | Steffen Winter <steffen.winter@proton.me> | 2024-01-15 19:23:47 +0100 |
---|---|---|
committer | Steffen Winter <steffen.winter@proton.me> | 2024-01-15 19:23:47 +0100 |
commit | a44ce1c3a1036c376d105ee7aba81ba7e60c87ae (patch) | |
tree | 8ecd71dfc21113c443c736df26b647b5828cfb5c | |
parent | b2df50396b0405b8ce2cfa3b10d4542cfd9d73cd (diff) |
Make BTOP_DEBUG also work for CMake
-rw-r--r-- | src/btop_tools.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/btop_tools.hpp b/src/btop_tools.hpp index 705a5eb..766cc95 100644 --- a/src/btop_tools.hpp +++ b/src/btop_tools.hpp @@ -18,6 +18,10 @@ tab-size = 4 #pragma once +#if !defined(NDEBUG) +# define BTOP_DEBUG +#endif + #include <algorithm> // for std::ranges::count_if #include <array> #include <atomic> |