initial
This commit is contained in:
+10
@@ -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
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user