summaryrefslogtreecommitdiffhomepage
path: root/lib/Macros.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-22 10:22:16 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-22 10:22:16 +0200
commite0b3869075eb6dd4d2d515f80056e2eeb1128fae (patch)
tree5158781eb6c8513d69c703e1847e1dd84094c42f /lib/Macros.h
parent7927f01e875ef76185535d209c14230fe9be183d (diff)
feat(btb)!: Introducing libBTB, better API.
also: - The Codebase has been improved. - Error codes are now string messages. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'lib/Macros.h')
-rw-r--r--lib/Macros.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/lib/Macros.h b/lib/Macros.h
deleted file mode 100644
index 9d51a2f..0000000
--- a/lib/Macros.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// ============================================================= //
-// btb
-// Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved.
-// ============================================================= //
-
-#pragma once
-
-extern "C" {
-#include <assert.h>
-}
-
-#include <rang.h>
-
-#define LIKELY(ARG) (ARG) ? assert(false) : ((void) 0)
-#define UNLIKELY(ARG) LIKELY(!(ARG))
-
-#define LIBBTB_VERSION "1.1.0"
-
-#define LIBBTB_VERSION_BCD 0x0110
-
-#define LIBBTB_VERSION_MAJOR 1
-#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