 |
AGXDynamics
2.31.1.0
|
Go to the documentation of this file.
21 #include <external/hedley/hedley.h>
23 #define AGX_STATIC_ASSERT(X) static_assert(X, #X)
25 #if !defined(AGX_DEBUG) && !defined(NDEBUG)
29 #define AGX_STRINGIFY(A) #A
30 #define AGX_TOSTRING(x) AGX_STRINGIFY(x)
38 #define _AGX_CONCAT(x,y) x ## y
39 #define AGX_CONCAT(x,y) _AGX_CONCAT(x,y)
47 # define AGX_NOEXCEPT noexcept
55 #define AGX_ITERATE_INDEX_SET(set, i) typename SetT::iterator _agx_set_iterator = set.begin(), _agx_set_end = set.end(); for (typename SetT::Type i; (_agx_set_iterator != _agx_set_end) && ((i = *_agx_set_iterator), true); ++_agx_set_iterator)
58 # define AGX_FORCE_INLINE __forceinline
59 #elif defined(__GNUC__) && !defined(AGX_DEBUG)
60 # define AGX_FORCE_INLINE inline __attribute__((always_inline))
62 # define AGX_FORCE_INLINE inline
66 #define AGX_ALIGNED( t, a ) __declspec( align( a ) ) t
68 #define AGX_ALIGNED( t, a ) t __attribute__ ((aligned (a)))
71 #ifdef CALLABLE_GENERATOR
72 #define CALLABLE __attribute__((annotate("CALLABLE")))
73 #define CALLABLE_UNIT(param) __attribute__((annotate("CALLABLE_UNIT " param)))
74 #define CALLABLE_IGNORE __attribute__((annotate("CALLABLE_IGNORE")))
77 #define CALLABLE_UNIT(param)
78 #define CALLABLE_IGNORE
83 #if defined(__GNUC__) && ( __GNUC__ >= 7)
84 #define AGX_MAYBE_UNUSED [[maybe_unused]]
86 #define AGX_MAYBE_UNUSED
90 #define AGX_DEPRECATED(since)
91 #define AGX_DEPRECATED_FOR(since, replacement)
93 #define AGX_DEPRECATED(since) HEDLEY_DEPRECATED(since)
94 #define AGX_DEPRECATED_FOR(since, replacement) HEDLEY_DEPRECATED_FOR(since, replacement)
99 #ifdef AGX_HIDE_INTERNAL_DOCUMENTATION
100 #define DOXYGEN_START_INTERNAL_BLOCK()
101 #define DOXYGEN_END_INTERNAL_BLOCK()
103 #define DOXYGEN_START_INTERNAL_BLOCK()
104 #define DOXYGEN_END_INTERNAL_BLOCK()