Compile time option to change bit size of level.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
16
src/Defines.hpp
Normal file
16
src/Defines.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef CREATURELIB_DEFINES_HPP
|
||||
#define CREATURELIB_DEFINES_HPP
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#if LEVEL_U8
|
||||
typedef uint8_t level_int_t;
|
||||
#elif LEVEL_U16
|
||||
typedef uint16_t level_int_t;
|
||||
#elif LEVEL_U32
|
||||
typedef uint32_t level_int_t;
|
||||
#elif LEVEL_U64
|
||||
typedef uint64_t level_int_t;
|
||||
#endif
|
||||
|
||||
#endif // CREATURELIB_DEFINES_HPP
|
||||
Reference in New Issue
Block a user