Michele Caini 5 лет назад
Родитель
Сommit
aa756f6d68
2 измененных файлов с 13 добавлено и 7 удалено
  1. 1 1
      docs/doxy.in
  2. 12 6
      src/entt/core/type_traits.hpp

+ 1 - 1
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

+ 12 - 6
src/entt/core/type_traits.hpp

@@ -221,14 +221,20 @@ using member_class_t = typename member_class<Member>::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<std::underlying_type_t<clazz>>(id);\
     }\