Znav | ||||
---|---|---|---|---|
|
A Slice enumeration maps to the corresponding enumeration in Objective-C. For example:
Wiki Markup |
---|
{zcode:slice} ["objc:prefix:EX"] module Example { enum Fruit { Apple, Pear, Orange }; }; {zcode} |
The generated Objective-C definition is:
Wiki Markup |
---|
{zcode:objc} typedef enum { EXApple, EXPear, EXOrange } EXFruit; {zcode} |
Ztop |
---|
See Also
- Objective-C Mapping for Modules
- Objective-C Mapping for Identifiers
- Objective-C Mapping for Built-In Types
- Objective-C Mapping for Structures
- Objective-C Mapping for Sequences
- Objective-C Mapping for Dictionaries
- Objective-C Mapping for Constants
- Objective-C Mapping for Exceptions
- Objective-C Mapping for Interfaces
Zret |
---|
Znav | ||||
---|---|---|---|---|
|