diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-16 20:00:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-16 20:00:37 +0200 |
| commit | d21a3b2e16b4e5f974dd000e11c868e2021292f0 (patch) | |
| tree | d91d1351193a9f758daa9dad964e40f5a84ece7f /dev/BuildKit/Defines.h | |
| parent | 50c2c9773d5660b1497a1132ffa96a7ab10d9c45 (diff) | |
| parent | d987d62459d59a6d95ffb815d5e6eccd8dbde1dd (diff) | |
Merge pull request #3 from nekernel-org/dev
v0.0.3
Diffstat (limited to 'dev/BuildKit/Defines.h')
| -rw-r--r-- | dev/BuildKit/Defines.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev/BuildKit/Defines.h b/dev/BuildKit/Defines.h new file mode 100644 index 0000000..d408058 --- /dev/null +++ b/dev/BuildKit/Defines.h @@ -0,0 +1,30 @@ +// ============================================================= // +// nebuild +// Copyright (C) 2024-2025, Amlal El Mahrouss, all rights reserved. +// ============================================================= // + +#pragma once + +#include <BuildKit/Imports.h> + +#define LIKELY(ARG) ((ARG) ? assert(false) : ((void) 0)) +#define UNLIKELY(ARG) LIKELY(!(ARG)) + +#define LIBNEBUILD_VERSION "v0.0.1-libNeBuild" + +#define LIBNEBUILD_VERSION_BCD 0x0001 + +#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 |
