summaryrefslogtreecommitdiff
path: root/include/pso/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pso/macros.h')
-rw-r--r--include/pso/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/pso/macros.h b/include/pso/macros.h
index 291a550..e182c54 100644
--- a/include/pso/macros.h
+++ b/include/pso/macros.h
@@ -108,4 +108,6 @@
PRIVATE_MEMBER_GETTER_FUNC(ret_type, name, __VA_ARGS__); \
PRIVATE_MEMBER_SETTER_FUNC(ret_type, name, __VA_ARGS__)
+#define as(type, var) reinterpret_cast<type>(var)
+
#endif