Fixes and expands comments on how to use GPB_ENUM_FWD_DECLARE

pull/2498/head
Sergio Campama 8 years ago
parent 2ff42dcf2c
commit c68fc589a9
  1. 6
      objectivec/GPBBootstrap.h

@ -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

Loading…
Cancel
Save