Skip to content

Commit

Permalink
Drop guards to accommodate external code defining KOKKOS_ASSERT
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Dec 13, 2023
1 parent 24b6484 commit ae71e40
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/src/Kokkos_Assert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
__LINE__) " \n"); \
} \
}
// some projects already define this for themselves, so don't mess
// them up
#ifndef KOKKOS_ASSERT
#define KOKKOS_ASSERT(...) \
{ \
if (!bool(__VA_ARGS__)) { \
Expand All @@ -58,8 +55,7 @@
__LINE__) " \n"); \
} \
}
#endif // ifndef KOKKOS_ASSERT
#else // not debug mode
#else // not debug mode
#define KOKKOS_EXPECTS(...)
#define KOKKOS_ENSURES(...)
#ifndef KOKKOS_ASSERT
Expand Down

0 comments on commit ae71e40

Please sign in to comment.