Macros
bloaty/third_party/protobuf/objectivec/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

◆ GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION

#define GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION   30001

◆ GOOGLE_PROTOBUF_OBJC_VERSION

#define GOOGLE_PROTOBUF_OBJC_VERSION   30002

◆ GPB_DEPRECATED

#define GPB_DEPRECATED   __attribute__((deprecated))

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

Definition at line 98 of file bloaty/third_party/protobuf/objectivec/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 bloaty/third_party/protobuf/objectivec/GPBBootstrap.h.

◆ GPB_ENUM

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

◆ 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 bloaty/third_party/protobuf/objectivec/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 bloaty/third_party/protobuf/objectivec/GPBBootstrap.h.

◆ GPB_METHOD_FAMILY_NONE

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

◆ 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 bloaty/third_party/protobuf/objectivec/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 bloaty/third_party/protobuf/objectivec/GPBBootstrap.h.

value
const char * value
Definition: hpack_parser_table.cc:165
GPB_ENUM_FWD_DECLARE
#define GPB_ENUM_FWD_DECLARE(X)
Definition: bloaty/third_party/protobuf/objectivec/GPBBootstrap.h:72


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:16