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 /public/frameworks | |
| parent | 6498165c295fab8352d8bcb37095ef81190dda20 (diff) | |
| parent | 578e905d123d1ae48ad6690cddd5247b83cdccae (diff) | |
[FEAT] CFAtom & Kernel::Atom improvements, doc TypeAtomic.
Diffstat (limited to 'public/frameworks')
7 files changed, 3 insertions, 11 deletions
diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h index c58d0600..5abf9824 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h @@ -20,9 +20,8 @@ class CFAtom final { CFAtom(const CFAtom&) = delete; public: - T operator[](SizeT bit) { return (fArrayOfAtoms & (1 << bit)); } - - void operator|(SizeT bit) { fArrayOfAtoms |= (1 << bit); } + const T& operator[](const T& bit) { return (fArrayOfAtoms & (T{1} << bit)); } + void operator|(const T& bit) { fArrayOfAtoms |= (T{1} << bit); } friend Boolean operator==(CFAtom<T>& atomic, const T& idx) { return atomic[idx] == idx; } diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h b/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h index b8bc1d5b..f10dc2de 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Dictionary.h @@ -3,7 +3,6 @@ // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/ne-foss-org/nekernel - #ifndef HEADERS_DICTIONARY_H #define HEADERS_DICTIONARY_H diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Object.h b/public/frameworks/CoreFoundation.fwrk/headers/Object.h index e5531f00..54ee6268 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Object.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Object.h @@ -4,7 +4,6 @@ // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/ne-foss-org/nekernel - #ifndef HEADERS_OBJECT_H #define HEADERS_OBJECT_H diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Property.h b/public/frameworks/CoreFoundation.fwrk/headers/Property.h index 65798d5d..f3176827 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Property.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Property.h @@ -3,7 +3,6 @@ // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/ne-foss-org/nekernel - #ifndef HEADERS_PROPERTY_H #define HEADERS_PROPERTY_H diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h index ac151659..59928e4e 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Ref.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Ref.h @@ -3,7 +3,6 @@ // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/ne-foss-org/nekernel - #ifndef HEADERS_REF_H #define HEADERS_REF_H diff --git a/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc b/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc index 192c72f5..e96e54a8 100644 --- a/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc +++ b/public/frameworks/CoreFoundation.fwrk/src/Foundation.cc @@ -3,7 +3,6 @@ // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/ne-foss-org/nekernel - #include <CoreFoundation.fwrk/headers/Foundation.h> /***********************************************************************************/ diff --git a/public/frameworks/KernelTest.fwrk/headers/TestCase.h b/public/frameworks/KernelTest.fwrk/headers/TestCase.h index 2090f84e..0a6208a8 100644 --- a/public/frameworks/KernelTest.fwrk/headers/TestCase.h +++ b/public/frameworks/KernelTest.fwrk/headers/TestCase.h @@ -40,9 +40,7 @@ KT_MUST_PASS(ret, ret, true); \ } \ } \ - inline const Char* KTTestCase##NAME::ToString() { \ - return #FN; \ - } + inline const Char* KTTestCase##NAME::ToString() { return #FN; } KT_DECL_TEST(AlwaysBreak, []() -> bool { KT_MUST_PASS("AlwaysBreak", YES, NO); |
