MCPcopy Create free account
hub / github.com/devkitPro/libctru / ERRF_Throw

Function ERRF_Throw

libctru/source/errf.c:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43Result ERRF_Throw(const ERRF_FatalErrInfo* error)
44{
45 u32 *cmdbuf = getThreadCommandBuffer();
46
47 cmdbuf[0] = IPC_MakeHeader(0x1,32,0); // 0x10800
48 memcpy(&cmdbuf[1], error, sizeof(ERRF_FatalErrInfo));
49
50 Result ret = 0;
51 if (R_FAILED(ret = svcSendSyncRequest(errfHandle)))
52 return ret;
53
54 return cmdbuf[1];
55}
56
57static inline void getCommonErrorData(ERRF_FatalErrInfo* error, Result failure)
58{

Callers 4

ERRF_ThrowResultFunction · 0.85
ERRF_LogResultFunction · 0.85
ERRF_ExceptionHandlerFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected