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

Function ERRF_LogResult

libctru/source/errf.c:86–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86Result ERRF_LogResult(Result failure)
87{
88 ERRF_FatalErrInfo error;
89 Result ret;
90
91 if (R_FAILED(ret = errfInit()))
92 return ret;
93
94 memset(&error, 0, sizeof(error));
95
96 error.type = ERRF_ERRTYPE_LOG_ONLY;
97
98 // pcAddr is not used by ErrDisp for ERRF_ERRTYPE_FAILURE
99 error.pcAddr = (u32)__builtin_extract_return_addr(__builtin_return_address(0));
100 getCommonErrorData(&error, failure);
101
102 ret = ERRF_Throw(&error);
103
104 errfExit();
105
106 return ret;
107}
108
109Result ERRF_ThrowResultWithMessage(Result failure, const char* message)
110{

Callers

nothing calls this directly

Calls 4

errfInitFunction · 0.85
getCommonErrorDataFunction · 0.85
ERRF_ThrowFunction · 0.85
errfExitFunction · 0.85

Tested by

no test coverage detected