From 4136e8f2e1e5da874d58fcea3b1f004b07c9677f Mon Sep 17 00:00:00 2001 From: kitty piapiac Date: Sat, 15 Apr 2023 22:57:36 -0700 Subject: init sdl2,opengl --- include/mino.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/mino.h (limited to 'include/mino.h') 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 +#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 -- cgit v1.2.3