2014-12-09 21:30:06 +00:00
|
|
|
#ifndef id2E81C803F1B94170B2C61A63D5020E08
|
|
|
|
#define id2E81C803F1B94170B2C61A63D5020E08
|
|
|
|
|
|
|
|
#if !defined(DK_COORD_SCALAR_TYPE)
|
2014-12-11 22:58:52 +00:00
|
|
|
/* this type represent tiles' coordinates, so it should be an integer type */
|
|
|
|
/* so it's not the tile position in your game world */
|
2014-12-09 21:30:06 +00:00
|
|
|
# define DK_COORD_SCALAR_TYPE int
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
# define MAKE_DK_NAME(a) a
|
|
|
|
namespace dk {
|
|
|
|
#else
|
|
|
|
# define MAKE_DK_NAME(a) dk_ ## a
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef DK_COORD_SCALAR_TYPE MAKE_DK_NAME(CoordinateScalarType);
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
} //namespace dk
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#undef DK_COORD_SCALAR_TYPE
|
|
|
|
#undef MAKE_DK_NAME
|
|
|
|
|
2014-12-11 22:58:52 +00:00
|
|
|
#if !defined(NDEBUG) && !defined(NO_DK_ASSERTIONS)
|
|
|
|
# if !defined(DK_ASSERT)
|
|
|
|
# include <cassert>
|
|
|
|
# define DK_ASSERT(a) assert(a)
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# if !defined(DK_ASSERT)
|
|
|
|
# define DK_ASSERT(a)
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2014-12-09 21:30:06 +00:00
|
|
|
#endif
|