Fixes and expands comments on how to use GPB_ENUM_FWD_DECLARE

This commit is contained in:
Sergio Campama 2016-12-14 11:35:44 -05:00
parent 2ff42dcf2c
commit c68fc589a9

View File

@ -62,7 +62,11 @@
*
* ```
* 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