diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-23 08:28:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-23 08:28:31 +0200 |
| commit | dab3762388278d1efadec1040a8f5c5ebd286b24 (patch) | |
| tree | 8e1fd9656a6650129c96f11ff7453f4a56b27517 /lib/Macros.h | |
| parent | d53efd75ace0791a36d8cb6c2f41bca3cb6fe7f0 (diff) | |
| parent | 72f132b8fb9f2a47b0f723f4dc4eaa4fdb0c45bd (diff) | |
Merge pull request #1 from nekernel-org/dev0.0.1b
1.1.0: New BTB verison.
Diffstat (limited to 'lib/Macros.h')
| -rw-r--r-- | lib/Macros.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Macros.h b/lib/Macros.h index fb6e77e..35a44a1 100644 --- a/lib/Macros.h +++ b/lib/Macros.h @@ -12,25 +12,26 @@ extern "C" #include <rang.h> -#define LIKELY(ARG) (ARG) ? assert(false) : ((void)0) +#define LIKELY(ARG) (ARG) ? assert(false) : ((void)0) #define UNLIKELY(ARG) LIKELY(!(ARG)) -#define LIBBTB_VERSION "1.2.0" +#define LIBBTB_VERSION "1.1.0" -#define LIBBTB_VERSION_BCD 0x0120 +#define LIBBTB_VERSION_BCD 0x0110 #define LIBBTB_VERSION_MAJOR 1 -#define LIBBTB_VERSION_MINOR 0 +#define LIBBTB_VERSION_MINOR 1 #define LIBBTB_VERSION_PATCH 0 #define LIBBTB_UNUSED(X) ((void)X) -namespace logger +namespace BTB::Logger { + /// @brief replacement for std::cout for BTB logging. inline std::ostream& info() noexcept { auto& out = std::cout; - out << rang::style::bold << rang::fg::red << "btb: " << rang::style::reset; + out << rang::fg::red << "btb: " << rang::style::reset; return out; } -} +} // namespace BTB::Logger |
