GRPC C++  1.26.0
Data Structures | Namespaces | Macros
core_codegen_interface.h File Reference
#include <grpc/impl/codegen/byte_buffer.h>
#include <grpc/impl/codegen/byte_buffer_reader.h>
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/impl/codegen/sync.h>
#include <grpcpp/impl/codegen/config.h>
#include <grpcpp/impl/codegen/status.h>

Go to the source code of this file.

Data Structures

class  grpc::CoreCodegenInterface
 Interface between the codegen library and the minimal subset of core features required by the generated code. More...
 

Namespaces

 grpc
 This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInputStream interface.
 

Macros

#define GPR_CODEGEN_ASSERT(x)
 Codegen specific version of GPR_ASSERT. More...
 
#define GPR_CODEGEN_DEBUG_ASSERT(x)   GPR_CODEGEN_ASSERT(x)
 Codegen specific version of GPR_DEBUG_ASSERT. More...
 

Macro Definition Documentation

◆ GPR_CODEGEN_ASSERT

#define GPR_CODEGEN_ASSERT (   x)
Value:
do { \
if (GPR_UNLIKELY(!(x))) { \
grpc::g_core_codegen_interface->assert_fail(#x, __FILE__, __LINE__); \
} \
} while (0)
CoreCodegenInterface * g_core_codegen_interface
Null-initializes the global gRPC variables for the codegen library.
Definition: completion_queue_impl.h:90
#define GPR_UNLIKELY(x)
Definition: port_platform.h:702
virtual void assert_fail(const char *failed_assertion, const char *file, int line)=0
Upon a failed assertion, log the error.

Codegen specific version of GPR_ASSERT.

◆ GPR_CODEGEN_DEBUG_ASSERT

#define GPR_CODEGEN_DEBUG_ASSERT (   x)    GPR_CODEGEN_ASSERT(x)

Codegen specific version of GPR_DEBUG_ASSERT.