GRPC C++  1.39.1
Macros
global_config_generic.h File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/gprpp/memory.h"
#include <stdint.h>

Go to the source code of this file.

Macros

#define GPR_GLOBAL_CONFIG_GET(name)   gpr_global_config_get_##name()
 
#define GPR_GLOBAL_CONFIG_SET(name, value)   gpr_global_config_set_##name(value)
 
#define GPR_GLOBAL_CONFIG_DECLARE_BOOL(name)
 
#define GPR_GLOBAL_CONFIG_DECLARE_INT32(name)
 
#define GPR_GLOBAL_CONFIG_DECLARE_STRING(name)
 

Macro Definition Documentation

◆ GPR_GLOBAL_CONFIG_DECLARE_BOOL

#define GPR_GLOBAL_CONFIG_DECLARE_BOOL (   name)
Value:
extern bool gpr_global_config_get_##name(); \
extern void gpr_global_config_set_##name(bool value)

◆ GPR_GLOBAL_CONFIG_DECLARE_INT32

#define GPR_GLOBAL_CONFIG_DECLARE_INT32 (   name)
Value:
extern int32_t gpr_global_config_get_##name(); \
extern void gpr_global_config_set_##name(int32_t value)

◆ GPR_GLOBAL_CONFIG_DECLARE_STRING

#define GPR_GLOBAL_CONFIG_DECLARE_STRING (   name)
Value:
extern grpc_core::UniquePtr<char> gpr_global_config_get_##name(); \
extern void gpr_global_config_set_##name(const char* value)
std::unique_ptr< T, DefaultDeleteChar > UniquePtr
Definition: memory.h:47

◆ GPR_GLOBAL_CONFIG_GET

#define GPR_GLOBAL_CONFIG_GET (   name)    gpr_global_config_get_##name()

◆ GPR_GLOBAL_CONFIG_SET

#define GPR_GLOBAL_CONFIG_SET (   name,
  value 
)    gpr_global_config_set_##name(value)