Re-add different level sizes in Defines.
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-09-27 11:25:32 +02:00
parent 4f972bcb28
commit dd8847a441
2 changed files with 22 additions and 1 deletions

View File

@@ -1,6 +1,17 @@
#ifndef CREATURELIB_DEFINES_HPP
#define CREATURELIB_DEFINES_HPP
using level_int_t = int;
#if LEVEL_U8
using level_int_t = uint8_t;
#elif LEVEL_U16
using level_int_t = uint16_t;
#elif LEVEL_U32
using level_int_t = uint32_t;
#elif LEVEL_U64
using level_int_t = uint64_t;
#else
#warning Level size was not specified, falling back to uint8_t
using level_int_t = uint8_t;
#endif
#endif // CREATURELIB_DEFINES_HPP