|
|
@ -58,8 +58,12 @@ static CoreCodegen g_core_codegen; |
|
|
|
class GrpcLibraryInitializer GRPC_FINAL { |
|
|
|
class GrpcLibraryInitializer GRPC_FINAL { |
|
|
|
public: |
|
|
|
public: |
|
|
|
GrpcLibraryInitializer() { |
|
|
|
GrpcLibraryInitializer() { |
|
|
|
grpc::g_glip = &g_gli; |
|
|
|
if (grpc::g_glip == nullptr) { |
|
|
|
grpc::g_core_codegen_interface = &g_core_codegen; |
|
|
|
grpc::g_glip = &g_gli; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (grpc::g_core_codegen_interface == nullptr) { |
|
|
|
|
|
|
|
grpc::g_core_codegen_interface = &g_core_codegen; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// A no-op method to force the linker to reference this class, which will
|
|
|
|
/// A no-op method to force the linker to reference this class, which will
|
|
|
|