#ifndef SH_MACROS_H #define SH_MACROS_H #include #include typedef uint32_t EntityID; typedef uint16_t EntityIndex; typedef uint32_t ComponentTypeID; typedef uint32_t SystemTypeID; typedef uint32_t SystemVersionID; typedef uint64_t SystemID; const EntityIndex MAX_EID = 51000; #define ENABLE_IF_DERIVED(__RETURN__, __BASE__, __DERIVED__)\ std::enable_if_t,__RETURN__> #define ENABLE_IF_UINT(_TYPE, _RETURN)\ typename std::enable_if<(std::is_integral<_TYPE>::value && !std::is_signed<_TYPE>::value),_RETURN>::type #ifdef COMPILING_THE_DLL #ifndef MY_DLL_EXPORT #define MY_DLL_EXPORT __declspec(dllexport) #endif #else #ifndef MY_DLL_EXPORT #define MY_DLL_EXPORT __declspec(dllimport) #endif #endif #endif