GRPC C++  1.50.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
 An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided function on expiry or cancellation.
 

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)

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.

GPR_UNLIKELY
#define GPR_UNLIKELY(x)
Definition: port_platform.h:762
grpc::CoreCodegenInterface::assert_fail
virtual void assert_fail(const char *failed_assertion, const char *file, int line)=0
Upon a failed assertion, log the error.
grpc::g_core_codegen_interface
CoreCodegenInterface * g_core_codegen_interface
Definition: completion_queue.h:98