Skip to content

Commit

Permalink
Update tb_internal.h
Browse files Browse the repository at this point in the history
  • Loading branch information
RealNeGate committed Jan 12, 2023
1 parent 9dac091 commit 4f1c61c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tb/tb_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ do { \
#define tb_assume(condition) assert(condition)
#else
#define tb_todo() abort()
#define tb_unreachable() __assume(0)
#define tb_unreachable() (__assume(0), 0)
#define tb_assume(condition) __assume(condition)
#endif
#else
Expand All @@ -505,7 +505,7 @@ do { \
#define tb_assume(condition) assert(condition)
#else
#define tb_todo() __builtin_trap()
#define tb_unreachable() __builtin_unreachable()
#define tb_unreachable() (__builtin_unreachable(), 0)
#define tb_assume(condition) ((condition) ? 0 : (void) __builtin_unreachable())
#endif
#endif
Expand Down

0 comments on commit 4f1c61c

Please sign in to comment.