mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
b03b13b720
When using a configuration without a swift compiler, we need to no-op the swift annotations. Other, cleverer solutions beyond the has include all fell flat in the face of the clang modules implementation used by swift to parse-once use-everywhere each module.
21 lines
546 B
C
21 lines
546 B
C
/*
|
|
* Copyright (c) 2024, Andrew Kaster <andrew@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#if __has_include(<swift/bridging>)
|
|
# include <swift/bridging>
|
|
#else
|
|
# define SWIFT_SELF_CONTAINED
|
|
# define SWIFT_RETURNS_INDEPENDENT_VALUE
|
|
# define SWIFT_SHARED_REFERENCE(retain, release)
|
|
# define SWIFT_IMMORTAL_REFERENCE
|
|
# define SWIFT_UNSAFE_REFERENCE
|
|
# define SWIFT_NAME(name)
|
|
# define SWIFT_CONFORMS_TO_PROTOCOL(protocol)
|
|
# define SWIFT_COMPUTED_PROPERTY
|
|
# define SWIFT_MUTATING
|
|
#endif
|