Kaynağa Gözat

Adding type def for terse int type

Vinicius Teshima 1 yıl önce
ebeveyn
işleme
01daf8895c
1 değiştirilmiş dosya ile 16 ekleme ve 0 silme
  1. 16 0
      src/int.h

+ 16 - 0
src/int.h

@@ -0,0 +1,16 @@
+#ifndef INT_H
+#define INT_H
+
+#include <stdint.h>
+
+typedef int8_t  i8;
+typedef int16_t i16;
+typedef int32_t i32;
+typedef int64_t i64;
+
+typedef uint8_t  ui8;
+typedef uint16_t ui16;
+typedef uint32_t ui32;
+typedef uint64_t ui64;
+
+#endif