unrelacy: include <mutex> and <condition_variable>
[model-checker-benchmarks.git] / include / unrelacy.h
index d65ffc3..c16a373 100644 (file)
@@ -4,16 +4,15 @@
 #include <stdatomic.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <mutex>
+#include <condition_variable>
+
+#include <model-assert.h>
 
 #define $
 
-#define _TEST_ASSERT(expr) \
-       if (!(expr)) { \
-               printf("Error: assertion failed at %s:%d\n", __FILE__, __LINE__); \
-               exit(EXIT_FAILURE); \
-       }
-#define ASSERT(expr) _TEST_ASSERT(expr)
-#define RL_ASSERT(expr) _TEST_ASSERT(expr)
+#define ASSERT(expr) MODEL_ASSERT(expr)
+#define RL_ASSERT(expr) MODEL_ASSERT(expr)
 
 #define RL_NEW new
 #define RL_DELETE(expr) delete expr