From 71ce2471ac8472d51cb0167551b177d97c14d049 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Thu, 30 Mar 2023 14:25:45 -0500 Subject: [PATCH] feat(handle): add handle declaration macro --- storm/Handle.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 storm/Handle.hpp diff --git a/storm/Handle.hpp b/storm/Handle.hpp new file mode 100644 index 0000000..b4264d2 --- /dev/null +++ b/storm/Handle.hpp @@ -0,0 +1,10 @@ +#ifndef STORM_HANDLE_HPP +#define STORM_HANDLE_HPP + +#if !defined(DECLARE_HANDLE) +#define DECLARE_HANDLE(name) \ + struct name##__; \ + typedef struct name##__* name +#endif + +#endif