Skip to content

Commit

Permalink
[libc][obvious] fix phrasing in assert comment
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrj-google committed Apr 7, 2023
1 parent 3acdd59 commit d92b585
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions libc/src/assert/assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@

#include "src/assert/__assert_fail.h"

// There is no header guard here since assert is intended to be able to be
// able to be included multiple times with NDEBUG defined differently, causing
// different behavior.
// There is no header guard here since assert is intended to capable of being
// included multiple times with NDEBUG defined differently, causing different
// behavior.

#undef assert

#ifdef NDEBUG
#define assert(e) (void)0
#else
#define assert(e) \
((e) ? (void)0 : \
__llvm_libc::__assert_fail(#e, __FILE__, __LINE__, __PRETTY_FUNCTION__))
((e) ? (void)0 \
: __llvm_libc::__assert_fail(#e, __FILE__, __LINE__, \
__PRETTY_FUNCTION__))
#endif

0 comments on commit d92b585

Please sign in to comment.