فهرست منبع

no more anonymous namespaces

Michele Caini 8 سال پیش
والد
کامیت
089b3e13fd
3فایلهای تغییر یافته به همراه26 افزوده شده و 3 حذف شده
  1. 0 1
      TODO
  2. 13 1
      src/entt/core/ident.hpp
  3. 13 1
      src/entt/signal/sigh.hpp

+ 0 - 1
TODO

@@ -5,7 +5,6 @@
 * define a macro for the noexcept policy, so as to provide users with an easy way to disable exception handling
 * define basic reactive systems (track entities to which component is attached, track entities from which component is removed, and so on)
 * ease the assignment of tags as string (use a template class with a non-type template parameter behind the scene)
-* turn anonymous namespaces in details:: so as to avoid issues related to internal vs external linkage
 * dictionary based dependency class (templates copied over) + prefabs (shared state/copy-on-write)
 * remove Actor::update (it's application dependent), allow tag instead
 * "singleton mode" for tags (see #66)

+ 13 - 1
src/entt/core/ident.hpp

@@ -10,7 +10,13 @@
 namespace entt {
 
 
-namespace {
+namespace internal {
+
+
+/**
+ * @cond TURN_OFF_DOXYGEN
+ * Internal details not to be documented.
+ */
 
 
 template<typename... Types>
@@ -47,6 +53,12 @@ private:
 };
 
 
+/**
+ * Internal details not to be documented.
+ * @endcond TURN_OFF_DOXYGEN
+ */
+
+
 }
 
 

+ 13 - 1
src/entt/signal/sigh.hpp

@@ -10,7 +10,13 @@
 namespace entt {
 
 
-namespace {
+namespace internal {
+
+
+/**
+ * @cond TURN_OFF_DOXYGEN
+ * Internal details not to be documented.
+ */
 
 
 template<typename, typename>
@@ -71,6 +77,12 @@ template<typename Function>
 using DefaultCollectorType = typename DefaultCollector<Function>::collector_type;
 
 
+/**
+ * Internal details not to be documented.
+ * @endcond TURN_OFF_DOXYGEN
+ */
+
+
 }