libnx
v4.8.0
|
Various system types. More...
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdalign.h>
Go to the source code of this file.
Data Structures | |
struct | Uuid |
struct | UtilFloat3 |
Macros | |
#define | BIT(n) (1U<<(n)) |
Creates a bitmask from a bit number. | |
#define | BITL(n) (1UL<<(n)) |
#define | NX_PACKED __attribute__((packed)) |
Packs a struct so that it won't include padding bytes. | |
#define | NX_NORETURN __attribute__((noreturn)) |
Marks a function as not returning, for the purposes of compiler optimization. | |
#define | NX_IGNORE_ARG(x) (void)(x) |
Performs a dummy operation on the specified argument in order to silence compiler warnings about unused arguments. | |
#define | NX_DEPRECATED __attribute__ ((deprecated)) |
Flags a function as deprecated. | |
#define | NX_INLINE __attribute__((always_inline)) static inline |
Flags a function as (always) inline. | |
#define | NX_CONSTEXPR NX_INLINE |
Flags a function as constexpr in C++14 and above; or as (always) inline otherwise. | |
#define | INVALID_HANDLE ((Handle) 0) |
Invalid handle. | |
Typedefs | |
typedef uint8_t | u8 |
8-bit unsigned integer. | |
typedef uint16_t | u16 |
16-bit unsigned integer. | |
typedef uint32_t | u32 |
32-bit unsigned integer. | |
typedef uint64_t | u64 |
64-bit unsigned integer. | |
typedef __uint128_t | u128 |
128-bit unsigned integer. | |
typedef int8_t | s8 |
8-bit signed integer. | |
typedef int16_t | s16 |
16-bit signed integer. | |
typedef int32_t | s32 |
32-bit signed integer. | |
typedef int64_t | s64 |
64-bit signed integer. | |
typedef __int128_t | s128 |
128-bit unsigned integer. | |
typedef volatile u8 | vu8 |
8-bit volatile unsigned integer. | |
typedef volatile u16 | vu16 |
16-bit volatile unsigned integer. | |
typedef volatile u32 | vu32 |
32-bit volatile unsigned integer. | |
typedef volatile u64 | vu64 |
64-bit volatile unsigned integer. | |
typedef volatile u128 | vu128 |
128-bit volatile unsigned integer. | |
typedef volatile s8 | vs8 |
8-bit volatile signed integer. | |
typedef volatile s16 | vs16 |
16-bit volatile signed integer. | |
typedef volatile s32 | vs32 |
32-bit volatile signed integer. | |
typedef volatile s64 | vs64 |
64-bit volatile signed integer. | |
typedef volatile s128 | vs128 |
128-bit volatile signed integer. | |
typedef u32 | Handle |
Kernel object handle. | |
typedef u32 | Result |
Function error code result type. | |
typedef void(* | ThreadFunc) (void *) |
Thread entrypoint function. | |
typedef void(* | VoidFn) (void) |
Function without arguments nor return value. | |
Various system types.