diff --git a/include/nameof.hpp b/include/nameof.hpp index e88ab62..f9ae57a 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -254,7 +254,7 @@ template >> template >>> [[nodiscard]] constexpr std::string_view nameof_enum(T value) noexcept { constexpr bool s = std::is_signed_v>>; - constexpr int min = s ? -MAGIC_ENUM_MAX_SEARCH_DEPTH : 0; + constexpr int min = s ? -NAMEOF_ENUM_MAX_SEARCH_DEPTH : 0; return detail::nameof_enum_t, min>{}(static_cast(value)); }