blob: 06d936f88cfd6c2ba2ad87e24e1e9d596fb3b83f (
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
|
// ============================================================= //
// nebuild
// Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under BSD-3 license.
// ============================================================= //
#pragma once
#include <NeBuildKit/Imports.h>
/// =========================================================== ///
/// @brief Defines file
/// =========================================================== ///
#define LIKELY(ARG) ((ARG) ? assert(false) : ((void) 0))
#define UNLIKELY(ARG) LIKELY(!(ARG))
#define LIBNEBUILD_VERSION "v0.0.7-buildkit"
#define LIBNEBUILD_VERSION_BCD 0x0007
#define LIBNEBUILD_VERSION_MAJOR 1
#define LIBNEBUILD_VERSION_MINOR 1
#define LIBNEBUILD_VERSION_PATCH 0
#define LIBNEBUILD_UNUSED(X) ((void) X)
namespace NeBuild::Logger {
/// @brief replacement for std::cout for NeBuild logging.
inline std::ostream& info() noexcept {
auto& out = std::cout;
out << rang::fg::red << "nebuild: " << rang::style::reset;
return out;
}
} // namespace NeBuild::Logger
|