14 throw MSXException(
"Couldn't find pointer in archive with id ",
id);
18static void versionError(
const char* className,
unsigned latestVersion,
unsigned version)
23 "your openMSX installation is too old (state contains type '",
24 className,
"' with version ", version,
25 ", while this openMSX installation only supports up to version ",
36 unsigned latestVersion)
40 if (!version)
return 1;
41 if (*version > latestVersion) [[unlikely]] {
42 versionError(className, latestVersion, *version);
This file implemented 3 utility functions:
void enumError(std::string_view str)
void pointerError(unsigned id)
unsigned loadVersionHelper(MemInputArchive &, const char *, unsigned)