diff --git a/docs/doxy.in b/docs/doxy.in index 50ed95389..51e96bf19 100644 --- a/docs/doxy.in +++ b/docs/doxy.in @@ -2100,7 +2100,7 @@ ENABLE_PREPROCESSING = YES # The default value is: NO. # This tag requires that the tag ENABLE_PREPROCESSING is set to YES. -MACRO_EXPANSION = NO +MACRO_EXPANSION = YES # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then # the macro expansion is limited to the macros specified with the PREDEFINED and diff --git a/src/entt/core/type_traits.hpp b/src/entt/core/type_traits.hpp index f90b8e5fe..496a613a6 100644 --- a/src/entt/core/type_traits.hpp +++ b/src/entt/core/type_traits.hpp @@ -221,14 +221,20 @@ using member_class_t = typename member_class::type; } -/** - * @brief Defines an enum class to use for opaque identifiers and a dedicate - * `to_integer` function to convert the identifiers to their underlying type. - * @param clazz The name to use for the enum class. - * @param type The underlying type for the enum class. - */ #define ENTT_OPAQUE_TYPE(clazz, type)\ + /**\ + * @brief Defines an enum class to use for opaque identifiers and a\ + * dedicate `to_integer` function to convert the identifiers to their\ + * underlying type.\ + * @param clazz The name to use for the enum class.\ + * @param type The underlying type for the enum class.\ + */\ enum class clazz: type {};\ + /**\ + * @brief Converts an opaque type value to its underlying type.\ + * @param id The value to convert.\ + * @return The integral representation of the given value. + */\ constexpr auto to_integral(const clazz id) ENTT_NOEXCEPT {\ return static_cast>(id);\ }\