This commit is contained in:
Martin Slachta
2026-07-18 14:31:15 +02:00
commit a04f0dc262
3343 changed files with 1140208 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#include <entt/core/attribute.h>
#include "../types.h"
ENTT_API const void *filter(const view_type &view) {
// forces the creation of all symbols for the view type
[[maybe_unused]] const view_type other{};
// unset filter fallback should not be accessible across boundaries
return view.storage<1u>();
}
+12
View File
@@ -0,0 +1,12 @@
#include <gtest/gtest.h>
#include <entt/core/attribute.h>
#include "../types.h"
ENTT_API const void *filter(const view_type &);
TEST(Lib, View) {
view_type view{};
const void *storage = filter(view);
ASSERT_EQ(storage, nullptr);
}