macro.h
Go to the documentation of this file.
1 #ifndef TTG_UTIL_MACRO_H
2 #define TTG_UTIL_MACRO_H
3 
4 
5 /* Used to suppres compiler warnings on unused variables */
6 #define TTGUNUSED(x) ((void)(x))
7 
8 
9 // pattern from https://www.fluentcpp.com/2017/10/27/function-aliases-cpp/
10 #define TTG_UTIL_ALIAS_TEMPLATE_FUNCTION(aliasname,funcname)\
11 template<typename... Args> \
12 inline auto aliasname(Args&&... args) \
13 { \
14  return funcname(std::forward<Args>(args)...); \
15 }
16 
17 #endif // TTG_UTIL_MACRO_H