ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
macro.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2#ifndef TTG_UTIL_MACRO_H
3#define TTG_UTIL_MACRO_H
4
5
6/* Used to suppres compiler warnings on unused variables */
7#define TTGUNUSED(x) ((void)(x))
8
9
10// pattern from https://www.fluentcpp.com/2017/10/27/function-aliases-cpp/
11#define TTG_UTIL_ALIAS_TEMPLATE_FUNCTION(aliasname,funcname)\
12template<typename... Args> \
13inline auto aliasname(Args&&... args) \
14{ \
15 return funcname(std::forward<Args>(args)...); \
16}
17
18#endif // TTG_UTIL_MACRO_H