Browse Source

Fixes and expands comments on how to use GPB_ENUM_FWD_DECLARE

Sergio Campama 8 years ago
parent
commit
c68fc589a9
1 changed files with 5 additions and 1 deletions
  1. 5 1
      objectivec/GPBBootstrap.h

+ 5 - 1
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