summaryrefslogtreecommitdiffhomepage
path: root/lib/Macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Macros.h')
-rw-r--r--lib/Macros.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/Macros.h b/lib/Macros.h
deleted file mode 100644
index 35a44a1..0000000
--- a/lib/Macros.h
+++ /dev/null
@@ -1,37 +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