From 9ec51795f2bc769cdd818dde88c838a8a9633a24 Mon Sep 17 00:00:00 2001 From: Peter Thoman Date: Tue, 19 Dec 2023 13:29:50 +0100 Subject: [PATCH] Don't use assert in SIMSYCL_NOT_IMPLEMENTED --- include/simsycl/detail/check.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/simsycl/detail/check.hh b/include/simsycl/detail/check.hh index b0123d8..0f7f426 100644 --- a/include/simsycl/detail/check.hh +++ b/include/simsycl/detail/check.hh @@ -2,7 +2,6 @@ #include -#include #include #define SIMSYCL_CHECK_NONE 1 @@ -34,7 +33,9 @@ void check_abort(bool condition, const char *cond_string, std::source_location l extern void var_use_dummy(...); -#define SIMSYCL_NOT_IMPLEMENTED assert(false && "Not implemented"); +#define SIMSYCL_NOT_IMPLEMENTED \ + printf("SIMSYCL: Not implemented (%s:%d)\n", __FILE__, __LINE__); \ + abort(); #define SIMSYCL_NOT_IMPLEMENTED_UNUSED_ARGS(...) \ if(false) var_use_dummy(__VA_ARGS__); \