static bool detectMesosphere(void)
Returns true if the underlying kernel is Mesosphère.
Definition: detect.h:20
static bool detectDebugger(void)
Returns true if the process has a debugger attached.
Definition: detect.h:13
#define R_SUCCEEDED(res)
Checks whether a result code indicates success.
Definition: result.h:10
Wrappers for kernel syscalls.
@ InfoType_DebuggerAttached
Whether current process is being debugged.
Definition: svc.h:193
Result svcGetInfo(u64 *out, u32 id0, Handle handle, u64 id1)
Retrieves information about the system, or a certain kernel object.
#define NX_INLINE
Flags a function as (always) inline.
Definition: types.h:86
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
#define INVALID_HANDLE
Invalid handle.
Definition: types.h:96
u32 Result
Function error code result type.
Definition: types.h:44