From 6de759742831d58638643ae2747e6c97a014241d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 12 Jul 2024 20:18:40 +0200 Subject: b --- compat/pretty-function.hpp | 7 +++++++ editor/inspect-types.cpp | 1 + entity/name-of.hpp | 7 +------ 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 compat/pretty-function.hpp diff --git a/compat/pretty-function.hpp b/compat/pretty-function.hpp new file mode 100644 index 00000000..b735ca5e --- /dev/null +++ b/compat/pretty-function.hpp @@ -0,0 +1,7 @@ +#pragma once + +#if defined _MSC_VER +#define FM_PRETTY_FUNCTION __FUNCSIG__ +#else +#define FM_PRETTY_FUNCTION __PRETTY_FUNCTION__ +#endif diff --git a/editor/inspect-types.cpp b/editor/inspect-types.cpp index eac5140c..fba0fc7b 100644 --- a/editor/inspect-types.cpp +++ b/editor/inspect-types.cpp @@ -156,6 +156,7 @@ template<> struct entity_accessors &hole::height, &hole::set_height, [](const hole& x) { return x.flags.is_wall ? st::enabled : st::readonly; }, + constantly(constraints::range{0, tile_size_z}), }, E::type::field{"z-offset"_s, &hole::z_offset, diff --git a/entity/name-of.hpp b/entity/name-of.hpp index ea65b52f..2a358896 100644 --- a/entity/name-of.hpp +++ b/entity/name-of.hpp @@ -1,13 +1,8 @@ #pragma once #include "compat/assert.hpp" +#include "compat/pretty-function.hpp" #include -#if defined _MSC_VER -#define FM_PRETTY_FUNCTION __FUNCSIG__ -#else -#define FM_PRETTY_FUNCTION __PRETTY_FUNCTION__ -#endif - template static constexpr auto _fm_internal_type_name_of() // NOLINT(bugprone-reserved-identifier) { -- cgit v1.2.3