summaryrefslogtreecommitdiffhomepage
path: root/dev/BuildKit/Defines.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-07-24 09:15:17 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-07-24 09:15:17 +0100
commita3ea256d00e5aac45574c7c8b076b60630f73a95 (patch)
treed639c686922140ee0465b27964ce4d2b854b68b7 /dev/BuildKit/Defines.h
parentbb11d32131e786b40550375005b12bcb31cf25d7 (diff)
feat! refactor! Breaking changes of the NeBuild system.
Working on a TOML backend, refactored source code namespace. And add 'toml++' vendor library. See commit details. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/BuildKit/Defines.h')
-rw-r--r--dev/BuildKit/Defines.h30
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