Macros
GPBBootstrap.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GOOGLE_PROTOBUF_OBJC_GEN_VERSION   30001
 
#define GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION   30001
 
#define GOOGLE_PROTOBUF_OBJC_VERSION   30002
 
#define GPB_DEPRECATED   __attribute__((deprecated))
 
#define GPB_DEPRECATED_MSG(msg)   __attribute__((deprecated))
 
#define GPB_ENUM(X)   NS_ENUM(int32_t, X)
 
#define GPB_ENUM_FWD_DECLARE(X)   enum X : int32_t
 
#define GPB_INLINE   static __inline__ __attribute__((always_inline))
 
#define GPB_METHOD_FAMILY_NONE   __attribute__((objc_method_family(none)))
 
#define GPB_UNSAFE_UNRETAINED
 
#define GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS   0
 

Macro Definition Documentation

◆ GOOGLE_PROTOBUF_OBJC_GEN_VERSION

#define GOOGLE_PROTOBUF_OBJC_GEN_VERSION   30001

Definition at line 141 of file GPBBootstrap.h.

◆ GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION

#define GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION   30001

Definition at line 134 of file GPBBootstrap.h.

◆ GOOGLE_PROTOBUF_OBJC_VERSION

#define GOOGLE_PROTOBUF_OBJC_VERSION   30002

Definition at line 130 of file GPBBootstrap.h.

◆ GPB_DEPRECATED

#define GPB_DEPRECATED   __attribute__((deprecated))

Attribute used for Objective-C proto interface deprecations without messages.

Definition at line 98 of file GPBBootstrap.h.

◆ GPB_DEPRECATED_MSG

#define GPB_DEPRECATED_MSG (   msg)    __attribute__((deprecated))

Attribute used for Objective-C proto interface deprecations with messages.

Definition at line 108 of file GPBBootstrap.h.

◆ GPB_ENUM

#define GPB_ENUM (   X)    NS_ENUM(int32_t, X)

Definition at line 57 of file GPBBootstrap.h.

◆ GPB_ENUM_FWD_DECLARE

#define GPB_ENUM_FWD_DECLARE (   X)    enum X : int32_t

GPB_ENUM_FWD_DECLARE is used for forward declaring enums, for example:

@interface BarClass : NSObject
@property (nonatomic) enum Foo_Enum value;
- (void)bazMethod:(enum Foo_Enum):value;
@end

Definition at line 72 of file GPBBootstrap.h.

◆ GPB_INLINE

#define GPB_INLINE   static __inline__ __attribute__((always_inline))

Based upon CF_INLINE. Forces inlining in non DEBUG builds.

Definition at line 78 of file GPBBootstrap.h.

◆ GPB_METHOD_FAMILY_NONE

#define GPB_METHOD_FAMILY_NONE   __attribute__((objc_method_family(none)))

Definition at line 116 of file GPBBootstrap.h.

◆ GPB_UNSAFE_UNRETAINED

#define GPB_UNSAFE_UNRETAINED

For use in public headers that might need to deal with ARC.

Definition at line 90 of file GPBBootstrap.h.

◆ GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS

#define GPBOBJC_SKIP_MESSAGE_TEXTFORMAT_EXTRAS   0

The Objective C runtime has complete enough info that most protos don’t end up using this, so leaving it on is no cost or very little cost. If you happen to see it causing bloat, this is the way to disable it. If you do need to disable it, try only disabling it for Release builds as having full TextFormat can be useful for debugging.

Definition at line 39 of file GPBBootstrap.h.

void
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
GPB_ENUM_FWD_DECLARE
GPB_ENUM_FWD_DECLARE(GPBSyntax)
value
GLsizei const GLfloat * value
Definition: glcorearb.h:3093


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03