Skip to content

Commit 5b200c4

Browse files
authored
Merge pull request #3259 from terjr/fix-tusb-verify-documentation
Fix erroneous documentation of TU_ASSERT/TU_VERIFY
2 parents ff00470 + 7162cae commit 5b200c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common/tusb_verify.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@
5353
* The difference in behavior is that ASSERT triggers a breakpoint while
5454
* verify does not.
5555
*
56-
* #define TU_VERIFY(cond) if(cond) return false;
57-
* #define TU_VERIFY(cond,ret) if(cond) return ret;
56+
* #define TU_VERIFY(cond) if (!cond) return false;
57+
* #define TU_VERIFY(cond,ret) if (!cond) return ret;
5858
*
59-
* #define TU_ASSERT(cond) if(cond) {TU_MESS_FAILED(); TU_BREAKPOINT(), return false;}
60-
* #define TU_ASSERT(cond,ret) if(cond) {TU_MESS_FAILED(); TU_BREAKPOINT(), return ret;}
59+
* #define TU_ASSERT(cond) if (!cond) {TU_MESS_FAILED(); TU_BREAKPOINT(), return false;}
60+
* #define TU_ASSERT(cond,ret) if (!cond) {TU_MESS_FAILED(); TU_BREAKPOINT(), return ret;}
6161
*------------------------------------------------------------------*/
6262

6363
#ifdef __cplusplus

0 commit comments

Comments
 (0)