diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-09 20:37:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-09 20:37:29 +0100 |
| commit | 8633c78d7a0809cf0fcc0ec6350ad5b71bca9faf (patch) | |
| tree | 39ec629f5b80beb10919677fd12d7b258aaa2e14 /include/NeBuildKit/Detail/Config.h | |
| parent | 26783733863f62c468a4c8cb2853badd54e30a39 (diff) | |
| parent | 4e6fd1dd8c9762ea6543ec275fe57ca474f23d8f (diff) | |
Merge pull request #21 from nekernel-org/codebase-chore-raii
chore: codebase modernization and hygiene improvements.
Diffstat (limited to 'include/NeBuildKit/Detail/Config.h')
| -rw-r--r-- | include/NeBuildKit/Detail/Config.h | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/include/NeBuildKit/Detail/Config.h b/include/NeBuildKit/Detail/Config.h index 915bde4..ddf93c1 100644 --- a/include/NeBuildKit/Detail/Config.h +++ b/include/NeBuildKit/Detail/Config.h @@ -16,32 +16,30 @@ #define LIKELY(ARG) ((ARG) ? assert(false) : ((void) 0)) #define UNLIKELY(ARG) LIKELY(!(ARG)) -#define LIBNEBUILD_VERSION "v0.0.7-buildkit" +#define NEBUILD_VERSION "v0.0.8-buildkit" -#define LIBNEBUILD_VERSION_BCD 0x0007 +#define NEBUILD_VERSION_BCD 0x0007 -#define LIBNEBUILD_VERSION_MAJOR 0 -#define LIBNEBUILD_VERSION_MINOR 0 -#define LIBNEBUILD_VERSION_PATCH 7 +#define NEBUILD_VERSION_MAJOR 0 +#define NEBUILD_VERSION_MINOR 0 +#define NEBUILD_VERSION_PATCH 7 -#define LIBNEBUILD_EXPORT_C extern "C" +#define NEBUILD_EXPORT_C extern "C" -#define LIBNEBUILD_UNUSED(X) ((void) X) +#define NEBUILD_UNUSED(X) ((void) X) namespace NeBuild { - struct BuildConfig final { - bool has_failed_{false}; - bool dry_run_{false}; - std::string path_{}; - - explicit operator bool() { - return has_failed_; - } - - BuildConfig() = default; - ~BuildConfig() {} - }; -} +struct BuildConfig final { + bool has_failed_{false}; + bool dry_run_{false}; + std::string path_{}; + + explicit operator bool() { return has_failed_; } + + BuildConfig() = default; + ~BuildConfig() = default; +}; +} // namespace NeBuild namespace NeBuild::Logger { /// @brief replacement for std::cout for NeBuild logging. @@ -51,5 +49,3 @@ inline std::ostream& info() noexcept { return out; } } // namespace NeBuild::Logger - - |
