mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +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:
parent
e50a43652e
commit
ae3ffdd521
Notes:
sideshowbarker
2024-07-17 04:01:30 +09:00
Author: https://github.com/awesomekling
Commit: ae3ffdd521
Pull-request: https://github.com/SerenityOS/serenity/pull/16206
124 changed files with 276 additions and 12 deletions
|
@ -340,7 +340,9 @@ inline ErrorOr<NonnullRefPtr<T>> adopt_nonnull_ref_or_enomem(T* object)
|
|||
|
||||
}
|
||||
|
||||
#if USING_AK_GLOBALLY
|
||||
using AK::adopt_ref_if_nonnull;
|
||||
using AK::RefPtr;
|
||||
using AK::static_ptr_cast;
|
||||
using AK::try_make_ref_counted;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue