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

Function errfInit

libctru/source/errf.c:14–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static int errfRefCount;
13
14Result errfInit(void)
15{
16 Result rc = 0;
17
18 if (AtomicPostIncrement(&errfRefCount)) return 0;
19
20 rc = svcConnectToPort(&errfHandle, "err:f");
21 if (R_FAILED(rc))
22 {
23 errfHandle = 0;
24 errfExit();
25 }
26
27 return rc;
28}
29
30void errfExit(void)
31{

Callers 5

ERRF_ThrowResultFunction · 0.85
ERRF_LogResultFunction · 0.85
ERRF_SetUserStringFunction · 0.85
ERRF_ExceptionHandlerFunction · 0.85

Calls 1

errfExitFunction · 0.85

Tested by

no test coverage detected