Files
oot3d/Include/types.h
T
2024-09-24 12:54:27 -04:00

28 lines
547 B
C

#pragma once
#define NULL 0
typedef signed char s8;
typedef unsigned char u8;
typedef signed short s16;
typedef unsigned short u16;
typedef signed int s32;
typedef unsigned int u32;
typedef signed long long s64;
typedef unsigned long long u64;
typedef float f32;
typedef double f64;
#ifdef __cplusplus
#define nullptr NULL
typedef u32 uintptr_t;
typedef s32 intptr_t;
#endif
#define static_assert(COND, MSG) typedef int __static_assert_balls[(COND) ? 1 : -1]
#define split(S) __attribute__((section("i." #S))) S