/* * StdInc.h, part of VCMI engine * * Authors: listed in file AUTHORS in main folder * * License: GNU General Public License v2.0 or later * Full text of license available in license.txt file, in main folder * */ #pragma once #include "../Global.h" #define VCMI_EDITOR_NAME "VCMI Map Editor" #include #include #include #include #include #include #include #include "../vcmiqt/convpathqstring.h" VCMI_LIB_USING_NAMESPACE using NumericPointer = typename std::conditional_t; template NumericPointer data_cast(Type * _pointer) { static_assert(sizeof(Type *) == sizeof(NumericPointer), "Cannot compile for that architecture, see NumericPointer definition"); return reinterpret_cast(_pointer); } template Type * data_cast(NumericPointer _numeric) { static_assert(sizeof(Type *) == sizeof(NumericPointer), "Cannot compile for that architecture, see NumericPointer definition"); return reinterpret_cast(_numeric); }