mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
AK: Mark Function as SWIFT_UNSAFE_REFERENCE
This allows us to import APIs that include a function without crashing the frontend. Without this, it chokes on the move-only behavior of the class.
This commit is contained in:
parent
c85043f2e1
commit
08b27f7b6e
Notes:
github-actions[bot]
2025-04-03 22:49:47 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/08b27f7b6e8 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4053
1 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@
|
|||
#include <AK/ScopeGuard.h>
|
||||
#include <AK/Span.h>
|
||||
#include <AK/StdLibExtras.h>
|
||||
#include <AK/Swift.h>
|
||||
#include <AK/TypeCasts.h>
|
||||
#include <AK/Types.h>
|
||||
|
||||
|
@ -382,7 +383,7 @@ private:
|
|||
static constexpr size_t inline_capacity = 4 * sizeof(void*);
|
||||
|
||||
alignas(inline_alignment) u8 m_storage[inline_capacity];
|
||||
};
|
||||
} SWIFT_UNSAFE_REFERENCE;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue