This is useful when building with compilers like clang+llvm which do not
plan on implementing this extension.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
logbug(&counter, level, __func__, __VA_ARGS__); \
} while (0)
+#ifdef __clang__
+
+#define CALL(func, ...) \
+({ typeof (func) *sym = getsym ( # func); sym (__VA_ARGS__); })
+
+#else
+
/* Evil non-standard GNU C macro ;)
* typeof keyword,
* statement-expression,
sym (__VA_ARGS__); \
})
+#endif
/*** Environment ***
*