diff options
author | Andreas Kling <kling@serenityos.org> | 2022-11-26 12:18:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-11-26 15:51:34 +0100 |
commit | ae3ffdd521a7c7d1fd4b47f9bbfbfaf20da5a14d (patch) | |
tree | 7b34ebf6fdc89bbc1e948833930997efd90f04c9 /AK/Concepts.h | |
parent | e50a43652eb80c2480fa9b23782bb11a0ccde7e8 (diff) | |
download | serenity-ae3ffdd521a7c7d1fd4b47f9bbfbfaf20da5a14d.zip |
AK: Make it possible to not `using` AK classes into the global namespace
This patch adds the `USING_AK_GLOBALLY` macro which is enabled by
default, but can be overridden by build flags.
This is a step towards integrating Jakt and AK types.
Diffstat (limited to 'AK/Concepts.h')
-rw-r--r-- | AK/Concepts.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/AK/Concepts.h b/AK/Concepts.h index f54028929a..aaa1348cc7 100644 --- a/AK/Concepts.h +++ b/AK/Concepts.h @@ -121,6 +121,7 @@ concept FallibleFunction = requires(Func&& func, Args&&... args) { // clang-format on } +#if USING_AK_GLOBALLY using AK::Concepts::Arithmetic; using AK::Concepts::ArrayLike; using AK::Concepts::Enum; @@ -138,3 +139,4 @@ using AK::Concepts::Signed; using AK::Concepts::SpecializationOf; using AK::Concepts::Unsigned; using AK::Concepts::VoidFunction; +#endif |