15 #define SSIZE_MAX ((SIZE_MAX) >> 1)
48 typedef struct {
u8 uuid[0x10]; }
Uuid;
54 #define BIT(n) (1U<<(n))
58 #define BITL(n) (1UL<<(n))
63 #define NX_PACKED __attribute__((packed))
68 #define NX_NORETURN __attribute__((noreturn))
73 #define NX_IGNORE_ARG(x) (void)(x)
78 #ifndef LIBNX_NO_DEPRECATION
79 #define NX_DEPRECATED __attribute__ ((deprecated))
86 #define NX_INLINE __attribute__((always_inline)) static inline
89 #if __cplusplus >= 201402L
90 #define NX_CONSTEXPR NX_INLINE constexpr
92 #define NX_CONSTEXPR NX_INLINE
96 #define INVALID_HANDLE ((Handle) 0)
__int128_t s128
128-bit unsigned integer.
Definition: types.h:29
volatile s8 vs8
8-bit volatile signed integer.
Definition: types.h:37
volatile u8 vu8
8-bit volatile unsigned integer.
Definition: types.h:31
int64_t s64
64-bit signed integer.
Definition: types.h:28
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
volatile u128 vu128
128-bit volatile unsigned integer.
Definition: types.h:35
volatile s64 vs64
64-bit volatile signed integer.
Definition: types.h:40
void(* VoidFn)(void)
Function without arguments nor return value.
Definition: types.h:46
volatile u16 vu16
16-bit volatile unsigned integer.
Definition: types.h:32
volatile s32 vs32
32-bit volatile signed integer.
Definition: types.h:39
volatile s128 vs128
128-bit volatile signed integer.
Definition: types.h:41
volatile s16 vs16
16-bit volatile signed integer.
Definition: types.h:38
void(* ThreadFunc)(void *)
Thread entrypoint function.
Definition: types.h:45
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
__uint128_t u128
128-bit unsigned integer.
Definition: types.h:23
int8_t s8
8-bit signed integer.
Definition: types.h:25
int16_t s16
16-bit signed integer.
Definition: types.h:26
u32 Handle
Kernel object handle.
Definition: types.h:43
volatile u32 vu32
32-bit volatile unsigned integer.
Definition: types.h:33
volatile u64 vu64
64-bit volatile unsigned integer.
Definition: types.h:34
uint16_t u16
16-bit unsigned integer.
Definition: types.h:20
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21