Commit d1c1dad0 authored by Thomas Van Lenten's avatar Thomas Van Lenten Committed by GitHub

Merge pull request #2498 from sergiocampama/enum

Fixes and expands comments on how to use GPB_ENUM_FWD_DECLARE
parents 2ff42dcf c68fc589
...@@ -62,7 +62,11 @@ ...@@ -62,7 +62,11 @@
* *
* ``` * ```
* GPB_ENUM_FWD_DECLARE(Foo_Enum) * GPB_ENUM_FWD_DECLARE(Foo_Enum)
* @property (nonatomic) Foo_Enum value; *
* @interface BarClass : NSObject
* @property (nonatomic) enum Foo_Enum value;
* - (void)bazMethod:(enum Foo_Enum):value;
* @end
* ``` * ```
**/ **/
#define GPB_ENUM_FWD_DECLARE(X) enum X : int32_t #define GPB_ENUM_FWD_DECLARE(X) enum X : int32_t
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment