feat(handle): improve handle macros

This commit is contained in:
fallenoak 2025-09-03 23:02:17 -05:00
parent 5121638c27
commit 595e431d92
3 changed files with 31 additions and 6 deletions

23
test/Handle.cpp Normal file
View file

@ -0,0 +1,23 @@
#include "storm/Handle.hpp"
#include "test/Test.hpp"
TEST_CASE("DECLARE_STORM_HANDLE", "[handle]") {
SECTION("declares handle") {
DECLARE_STORM_HANDLE(HTEST);
HTEST test;
SUCCEED();
}
}
TEST_CASE("DECLARE_STORM_CHILD_HANDLE", "[handle]") {
SECTION("declares child handle") {
DECLARE_STORM_HANDLE(HPARENT);
DECLARE_STORM_CHILD_HANDLE(HCHILD, HPARENT);
HPARENT parent;
HCHILD child;
SUCCEED();
}
}