Skip to content

Commit

Permalink
disable interleaving together with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petiaccja committed Dec 2, 2023
1 parent 44918ac commit 7f7291a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/async++/interleaving/sequence_point.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ namespace impl_sp {
}


#ifdef NDEUBG
#define SEQUENCE_POINT(NAME) void()
#define SEQUENCE_POINT_ACQUIRE(NAME) void()
#define INTERLEAVED(EXPR) EXPR
#define INTERLEAVED_ACQUIRE(EXPR) EXPR
#else
#if defined(ASYNCPP_BUILD_TESTS) && ASYNCPP_BUILD_TESTS
#define SEQUENCE_POINT(NAME) \
{ \
static ::asyncpp::interleaving::sequence_point sp = { \
Expand Down Expand Up @@ -81,6 +76,11 @@ namespace impl_sp {
::asyncpp::interleaving::impl_sp::wait(sp); \
return EXPR; \
}(__func__)
#else
#define SEQUENCE_POINT(NAME) void()
#define SEQUENCE_POINT_ACQUIRE(NAME) void()
#define INTERLEAVED(EXPR) EXPR
#define INTERLEAVED_ACQUIRE(EXPR) EXPR
#endif

} // namespace asyncpp::interleaving

0 comments on commit 7f7291a

Please sign in to comment.