Browse Source

add some fixed size type definitions inspired from by the rust types.

They are just handy and clean.
main
heck 7 months ago
parent
commit
a4312ca12b
  1. 19
      src/types.hh

19
src/types.hh

@ -0,0 +1,19 @@
#ifndef HECK_DAISY_TYPES_HH
#define HECK_DAISY_TYPES_HH
#include <cstdint>
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using u64 = uint64_t;
using i8 = int8_t;
using i16 = int16_t;
using i32 = int32_t;
using i64 = int64_t;
using f32 = float;
using f64 = double;
#endif
Loading…
Cancel
Save