Skip to content

Commit

Permalink
Don't use assert in SIMSYCL_NOT_IMPLEMENTED
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTh committed Dec 19, 2023
1 parent 34239e7 commit 9ec5179
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/simsycl/detail/check.hh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

#include <simsycl/config.hh>

#include <cassert>
#include <source_location>

#define SIMSYCL_CHECK_NONE 1
Expand Down Expand Up @@ -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__); \
Expand Down

0 comments on commit 9ec5179

Please sign in to comment.