1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

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.
This commit is contained in:
Andreas Kling 2022-11-26 12:18:30 +01:00
parent e50a43652e
commit ae3ffdd521
124 changed files with 276 additions and 12 deletions

View file

@ -6,6 +6,8 @@
#pragma once
#include <AK/Platform.h>
namespace AK {
template<typename T, typename... Ts>
@ -63,6 +65,7 @@ template<typename T, typename... Ts>
}
}
#if USING_AK_GLOBALLY
using AK::first_is_larger_or_equal_than_all_of;
using AK::first_is_larger_or_equal_than_one_of;
using AK::first_is_larger_than_all_of;
@ -72,3 +75,4 @@ using AK::first_is_smaller_or_equal_than_all_of;
using AK::first_is_smaller_or_equal_than_one_of;
using AK::first_is_smaller_than_all_of;
using AK::first_is_smaller_than_one_of;
#endif