diff options
| author | Amlal <amlal@nekernel.org> | 2025-04-25 13:17:33 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-04-25 13:17:33 +0200 |
| commit | 7927f01e875ef76185535d209c14230fe9be183d (patch) | |
| tree | 129eecf026edf7e8a47d1a3c49716c74b6caa985 /lib/Macros.h | |
| parent | 72f132b8fb9f2a47b0f723f4dc4eaa4fdb0c45bd (diff) | |
dev: update clang-fornat, and codebase.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'lib/Macros.h')
| -rw-r--r-- | lib/Macros.h | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/lib/Macros.h b/lib/Macros.h index 35a44a1..9d51a2f 100644 --- a/lib/Macros.h +++ b/lib/Macros.h @@ -5,14 +5,13 @@ #pragma once -extern "C" -{ +extern "C" { #include <assert.h> } #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.1.0" @@ -23,15 +22,13 @@ extern "C" #define LIBBTB_VERSION_MINOR 1 #define LIBBTB_VERSION_PATCH 0 -#define LIBBTB_UNUSED(X) ((void)X) - -namespace BTB::Logger -{ - /// @brief replacement for std::cout for BTB logging. - inline std::ostream& info() noexcept - { - auto& out = std::cout; - out << rang::fg::red << "btb: " << rang::style::reset; - return out; - } -} // namespace BTB::Logger +#define LIBBTB_UNUSED(X) ((void) X) + +namespace BTB::Logger { +/// @brief replacement for std::cout for BTB logging. +inline std::ostream& info() noexcept { + auto& out = std::cout; + out << rang::fg::red << "btb: " << rang::style::reset; + return out; +} +} // namespace BTB::Logger |
