blob: fb6e77e795cd3fbe2b88ac12391ccd6393bc100b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// ============================================================= //
// 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.2.0"
#define LIBBTB_VERSION_BCD 0x0120
#define LIBBTB_VERSION_MAJOR 1
#define LIBBTB_VERSION_MINOR 0
#define LIBBTB_VERSION_PATCH 0
#define LIBBTB_UNUSED(X) ((void)X)
namespace logger
{
inline std::ostream& info() noexcept
{
auto& out = std::cout;
out << rang::style::bold << rang::fg::red << "btb: " << rang::style::reset;
return out;
}
}
|