namespace gpr::rgmin_abi

Overview

namespace rgmin_abi {
 
// structs
 
struct Stamp;
 
// global functions
 
std::string describe(const Stamp& stamp);
std::string mismatch(const Stamp& header, const Stamp& library, bool library_accepts);
Stamp headerStamp();
Stamp libraryStamp();
std::string linkedLibraryMismatch();
void requireCompatibleLibrary();
 
} // namespace rgmin_abi

Detailed Documentation

Global Functions

std::string mismatch(const Stamp& header, const Stamp& library, bool library_accepts)

Empty when the library accepts the header’s stamp and agrees with it on major and layout revision; otherwise a message naming both stamps. library_accepts is the result of rgmin_abi_compatible on the header’s stamp.

std::string linkedLibraryMismatch()

The mismatch message for the linked library; empty when compatible.

void requireCompatibleLibrary()

Checks the linked library once, before the first rgmin call. Throws std::runtime_error on a mismatch; there is no fallback.