diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-03-12 18:22:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-12 18:22:35 +0100 |
| commit | 9f79840a489aa65a69350fd48bf83d118f56ccb3 (patch) | |
| tree | 6d332e82cc9c197cb7c5e0aff958b8bdc38009bf /src/kernel/NeKit/Utils.h | |
| parent | 6498165c295fab8352d8bcb37095ef81190dda20 (diff) | |
| parent | 578e905d123d1ae48ad6690cddd5247b83cdccae (diff) | |
[FEAT] CFAtom & Kernel::Atom improvements, doc TypeAtomic.
Diffstat (limited to 'src/kernel/NeKit/Utils.h')
| -rw-r--r-- | src/kernel/NeKit/Utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/NeKit/Utils.h b/src/kernel/NeKit/Utils.h index 3f387c33..0ac5acc5 100644 --- a/src/kernel/NeKit/Utils.h +++ b/src/kernel/NeKit/Utils.h @@ -55,9 +55,9 @@ inline constexpr SizeT oe_string_len(const CharType* str) { if (!str) return 0; #if __cplusplus == 202302L - if consteval { - return ARRAY_SIZE(str); - } else { + if + consteval { return ARRAY_SIZE(str); } + else { SizeT len{0}; while (str[len] != 0) ++len; return len; |
