From 1c5512da28f14f83b6c0fc463de90c1e0a9ba6a8 Mon Sep 17 00:00:00 2001 From: Tobias Zindl Date: Fri, 13 Oct 2023 18:42:21 +0200 Subject: [PATCH] :sparkles: add typeof macro (gcc) --- include/zll/utils/typeof_macro.hpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 include/zll/utils/typeof_macro.hpp diff --git a/include/zll/utils/typeof_macro.hpp b/include/zll/utils/typeof_macro.hpp new file mode 100644 index 0000000..f9d0608 --- /dev/null +++ b/include/zll/utils/typeof_macro.hpp @@ -0,0 +1,6 @@ +#ifndef ZLL_UTILS_TYPEOFMACRO_HPP +#define ZLL_UTILS_TYPEOFMACRO_HPP + +#define ZLL_TYPE_OF(t) __typeof__(t) + +#endif // ZLL_UTILS_TYPEOFMACRO_HPP