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

Function __libctru_init

libctru/source/system/ctru_init.c:16–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14void __system_initArgv(void);
15
16void __attribute__((weak)) __libctru_init(void (*retAddr)(void))
17{
18 // Store the return address
19 __system_retAddr = envIsHomebrew() ? retAddr : NULL;
20
21 // Initialize the synchronization subsystem
22 __sync_init();
23
24 // Initialize newlib support system calls
25 __system_initSyscalls();
26
27 // Allocate application and linear heaps
28 __system_allocateHeaps();
29
30 // Build argc/argv if present
31 __system_initArgv();
32}

Callers

nothing calls this directly

Calls 5

envIsHomebrewFunction · 0.85
__sync_initFunction · 0.85
__system_initSyscallsFunction · 0.85
__system_allocateHeapsFunction · 0.85
__system_initArgvFunction · 0.85

Tested by

no test coverage detected