Log warning and fall back to uint8_t if level size wasn't specified.
continuous-integration/drone/push Build is failing Details

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
Deukhoofd 2020-08-20 13:48:00 +02:00
parent 6ba0bb7298
commit 6d6e6ab026
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ typedef uint32_t level_int_t;
#elif LEVEL_U64
typedef uint64_t level_int_t;
#else
#error No Level size was specified
#warning Level size wasn't specified, falling back to uint8_t
typedef uint8_t level_int_t;
#endif
#endif // CREATURELIB_DEFINES_HPP