aboutsummaryrefslogtreecommitdiff
path: root/include/types33.h
diff options
context:
space:
mode:
authorpk33 <pk33@pk33.space>2024-11-11 18:06:18 +0100
committerpk33 <pk33@pk33.space>2024-11-11 18:06:18 +0100
commit5a54774474f43ae29716751d6415563a59b92c7d (patch)
tree151e865845b09b85992d8be20d8cc771d4110448 /include/types33.h
parent146a683b8d8315ef15dc1c9286f0983834f48d88 (diff)
downloadengine33-5a54774474f43ae29716751d6415563a59b92c7d.tar.gz
tidying up and basic input
Diffstat (limited to 'include/types33.h')
-rw-r--r--include/types33.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/include/types33.h b/include/types33.h
new file mode 100644
index 0000000..a72414e
--- /dev/null
+++ b/include/types33.h
@@ -0,0 +1,47 @@
+#ifndef __TYPES33_H__
+#define __TYPES33_H__
+
+
+#include "stdlib.h"
+#include "stdint.h"
+
+#include "sys/types.h"
+
+
+#define E33_EXIT_SUCCESS 0
+#define E33_EXIT_FAILURE 1
+#define E33_TRUE 1
+#define E33_FALSE 0
+
+typedef int8_t i8;
+typedef int16_t i16;
+typedef int32_t i32;
+typedef int64_t i64;
+
+typedef uint8_t u8;
+typedef uint16_t u16;
+typedef uint32_t u32;
+typedef uint64_t u64;
+
+typedef float f32;
+typedef double f64;
+
+typedef uintptr_t uPtr;
+typedef ssize_t Size;
+typedef size_t uSize;
+
+typedef const char * String;
+
+typedef Size Error;
+typedef Size Boolean;
+typedef Size Bitfield;
+
+//#define sizeof(x) (Size)sizeof(x)
+//#define alignof(x) (Size)_Alignof(x)
+//#define countof(a) (sizeof(a) / sizeof(*(a)))
+//#define lengthof(s) (countof(s) - 1)
+
+//#define assert(c) while( !(c) ){ __builtin_unreachable(); }
+
+
+#endif /* __TYPES33_H__ */