#pragma once #include template struct False { static constexpr auto value = false; }; template struct MemberIsOffsetBy { static_assert(False::value, "Member is offset by this value"); }; template struct MemberIsOffsetBy { }; template struct SingleChecker { using IsOffsetBy = MemberIsOffsetBy; }; #define GEODE_MEMBER_CHECK(Class_, Member_, Offset_) class Member_; SingleChecker::IsOffsetBy GEODE_CONCAT(OffsetBy, __LINE__)