Merge pull request #2498 from sergiocampama/enum

Fixes and expands comments on how to use GPB_ENUM_FWD_DECLARE
pull/2499/head
Thomas Van Lenten 8 years ago committed by GitHub
commit d1c1dad047
  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