diff options
author | kitty piapiac <kcp@bsd.computer> | 2023-04-15 22:57:36 -0700 |
---|---|---|
committer | kitty piapiac <kcp@bsd.computer> | 2023-04-15 22:57:36 -0700 |
commit | 4136e8f2e1e5da874d58fcea3b1f004b07c9677f (patch) | |
tree | 93350473689fef10155c4598a43fef7374871b47 /include/mino.h |
init sdl2,opengl
Diffstat (limited to 'include/mino.h')
-rw-r--r-- | include/mino.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/mino.h b/include/mino.h new file mode 100644 index 0000000..ab9a7b3 --- /dev/null +++ b/include/mino.h @@ -0,0 +1,32 @@ +#ifndef MINO_H +#define MINO_H +#include<stdint.h> +#define IM const +#define N(a,...)Q(!(a),__VA_ARGS__) +#define NR _Noreturn +#define OR else +#define SZ sizeof +#define VA(a,...){va_list ap;va_start(ap,a);__VA_ARGS__;va_end(ap);} +#define WH(a,...)while((a)){__VA_ARGS__;} +#define Q(a,...)if((a)){__VA_ARGS__;} +#define R return +#define X extern +#define _ static + +typedef uint8_t U8; typedef int8_t S8; +typedef uint16_t U16; typedef int16_t S16; +typedef uint32_t U32; typedef int32_t S32; +typedef uint64_t U64; typedef int64_t S64; +typedef uintptr_t Uz; typedef intptr_t Sz; +typedef float F32; +typedef double F64; +typedef void V; +typedef char C; +typedef int I; + +X NR V die(IM C*,...); +X NR V die_sdl(V); +X V*make(Uz); +X V*remk(V*,Uz); +X V del(V*); +#endif |