summaryrefslogtreecommitdiffhomepage
path: root/src/CompilerKit/CodeGenerator.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 15:13:22 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 15:17:53 +0100
commitcd3092186eb698a9ed175dacb6884f0404e7c062 (patch)
treecdc3e0e013f5efb0dfc8c450b706951d3a8e3597 /src/CompilerKit/CodeGenerator.h
parent14ed88e58517890f5cce1bb9ab5cfb9e94bcfbf6 (diff)
chore! Breaking API changes for CompilerKit and DebuggerKit.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/CompilerKit/CodeGenerator.h')
-rw-r--r--src/CompilerKit/CodeGenerator.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/CompilerKit/CodeGenerator.h b/src/CompilerKit/CodeGenerator.h
index 836d588..3a18803 100644
--- a/src/CompilerKit/CodeGenerator.h
+++ b/src/CompilerKit/CodeGenerator.h
@@ -6,7 +6,7 @@
#pragma once
-#include <CompilerKit/detail/Config.h>
+#include <CompilerKit/Detail/Config.h>
#include <CompilerKit/Macros.h>
#include <CompilerKit/StringKit.h>
#include <cstring>
@@ -84,7 +84,9 @@ union NumberCast64 final {
~NumberCast64() { raw = 0; }
- Char number[8];
+ static constexpr auto kLimit = 8;
+
+ Char number[kLimit];
UInt64 raw;
};
@@ -94,7 +96,9 @@ union NumberCast32 final {
~NumberCast32() { raw = 0; }
- Char number[4];
+ static constexpr auto kLimit = 4;
+
+ Char number[kLimit];
UInt32 raw;
};
@@ -104,7 +108,9 @@ union NumberCast16 final {
~NumberCast16() { raw = 0; }
- Char number[2];
+ static constexpr auto kLimit = 2;
+
+ Char number[kLimit];
UInt16 raw;
};