Skip to content

Commit

Permalink
Update sn3d.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Nov 11, 2024
1 parent ce70015 commit cc49cac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sn3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ __attribute__((__format__(__printf__, 1, 2))) inline auto printout(const char *f
#define __artis_assert(e) \
{ \
const bool assertpass = static_cast<bool>(e); \
if (!assertpass) [[unlikely]] { \
if (__builtin_expect(!assertpass, 0)) [[unlikely]] { \
const std::string strstacktrace = STACKTRACEIFSUPPORTED; \
if (output_file) { \
output_file << "\n[rank " << globals::my_rank << "] " << __FILE__ << ":" << __LINE__ << ": failed assertion `" \
Expand All @@ -149,7 +149,6 @@ __attribute__((__format__(__printf__, 1, 2))) inline auto printout(const char *f
<< std::flush; \
std::abort(); \
} \
assert(assertpass); \
}

#endif
Expand Down

0 comments on commit cc49cac

Please sign in to comment.