Przeglądaj źródła

meta: linter friendly extra pointer check

skypjack 5 miesięcy temu
rodzic
commit
f48d16a6e6
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/entt/meta/meta.hpp

+ 1 - 0
src/entt/meta/meta.hpp

@@ -206,6 +206,7 @@ class meta_any {
             vtable(internal::meta_traits::is_none, *this, nullptr);
         }
 
+        ENTT_ASSERT(node != nullptr, "Invalid pointer to node");
         return *node;
     }