15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_TERMINATE_HANDLER_H_ 16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_TERMINATE_HANDLER_H_ 18 #include "google/cloud/version.h" 41 using TerminateHandler = std::function<
void(
const char* msg)>;
68 [[noreturn]]
void Terminate(
const char* msg);
#define GOOGLE_CLOUD_CPP_NS
Contains all the Google Cloud C++ Library APIs.
TerminateHandler SetTerminateHandler(TerminateHandler f)
Install terminate handler and get the old one atomically.
void Terminate(const char *msg)
Invoke the currently installed handler.
TerminateHandler GetTerminateHandler()
Get the currently installed handler.