mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename some macros based on the PR review comments.
- use the SWIFT prefix for all macros - make names of some macros shorter
This commit is contained in:
@@ -50,11 +50,11 @@ extern "C" void swift_initEnumValueWitnessTableSinglePayload(
|
||||
/// \returns -1 if the payload case is inhabited. If an empty case is inhabited,
|
||||
/// returns a value greater than or equal to zero and less than
|
||||
/// emptyCases.
|
||||
RT_ENTRY_VISIBILITY
|
||||
SWIFT_RT_ENTRY_VISIBILITY
|
||||
extern "C" int swift_getEnumCaseSinglePayload(const OpaqueValue *value,
|
||||
const Metadata *payload,
|
||||
unsigned emptyCases)
|
||||
CALLING_CONVENTION(RegisterPreservingCC);
|
||||
SWIFT_CC(RegisterPreservingCC);
|
||||
|
||||
|
||||
|
||||
@@ -69,12 +69,12 @@ extern "C" int swift_getEnumCaseSinglePayload(const OpaqueValue *value,
|
||||
/// case, or a value greater than or equal to zero and less
|
||||
/// than emptyCases for an empty case.
|
||||
/// \param emptyCases - the number of empty cases in the enum.
|
||||
RT_ENTRY_VISIBILITY
|
||||
SWIFT_RT_ENTRY_VISIBILITY
|
||||
extern "C" void swift_storeEnumTagSinglePayload(OpaqueValue *value,
|
||||
const Metadata *payload,
|
||||
int whichCase,
|
||||
unsigned emptyCases)
|
||||
CALLING_CONVENTION(RegisterPreservingCC);
|
||||
SWIFT_CC(RegisterPreservingCC);
|
||||
|
||||
/// \brief Initialize the value witness table for a generic, multi-payload
|
||||
/// enum instance.
|
||||
|
||||
Reference in New Issue
Block a user