Commit 7f8bf0fe authored by Samir Halilcevic's avatar Samir Halilcevic

Make CAF_ASSERT check whether execinfo exists

parent 673a168f
......@@ -222,7 +222,7 @@ struct IUnknown;
// Optionally enable CAF_ASSERT
#ifndef CAF_ENABLE_RUNTIME_CHECKS
# define CAF_ASSERT(unused) static_cast<void>(0)
#elif defined(CAF_WINDOWS) || defined(CAF_BSD)
#elif defined(CAF_WINDOWS) || defined(CAF_BSD) || !__has_include(<execinfo.h>)
# define CAF_ASSERT(stmt) \
if (static_cast<bool>(stmt) == false) { \
printf("%s:%u: requirement failed '%s'\n", __FILE__, __LINE__, #stmt); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment