mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-16 22:43:24 +09:00
[Refactor] (P13 W5 S4): the record verbs move from ServerVerbSink to MG_Record::RecordVerbSink, which ServerVerbSink now extends.
This commit is contained in:
@@ -180,6 +180,16 @@ namespace MobileGL::MG_Pipe {
|
||||
|
||||
bool MGPipeRecordLatched() { return g_recordLatchedHook != nullptr && g_recordLatchedHook(); }
|
||||
|
||||
void MGPipeProtocolFatal(const char* what, const char* detail) {
|
||||
MGPipeRecordFail(MGFatalFamily::ProtocolCorruption, "MGPipe: Fatal{ProtocolCorruption, \"%s\"} %s", what,
|
||||
detail != nullptr ? detail : "");
|
||||
}
|
||||
|
||||
void MGPipeProtocolFatalAt(const char* what, Uint64 got, Uint64 expected) {
|
||||
MGPipeRecordFail(MGFatalFamily::ProtocolCorruption, "MGPipe: Fatal{ProtocolCorruption, \"%s\"} got=%llu expected=%llu",
|
||||
what, static_cast<unsigned long long>(got), static_cast<unsigned long long>(expected));
|
||||
}
|
||||
|
||||
MGPipeRecordFailHook MGPipeRecordFailHookInstalled() { return g_recordFailHook; }
|
||||
MGPipeRecordLatchHook MGPipeRecordLatchHookInstalled() { return g_recordLatchHook; }
|
||||
MGPipeRecordLatchedHook MGPipeRecordLatchedHookInstalled() { return g_recordLatchedHook; }
|
||||
|
||||
Reference in New Issue
Block a user