[libc-commits] [PATCH] D121235: [libc] Add testing macros for errno and floating point exceptions.
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Mar 8 10:53:41 PST 2022
michaelrj added inline comments.
================
Comment at: libc/utils/UnitTest/FPMatcher.h:104
+#define EXPECT_MATH_ERRNO(expected) \
+ do { \
+ if (math_errhandling & MATH_ERRNO) { \
----------------
why is the do/while(0) necessary?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121235/new/
https://reviews.llvm.org/D121235
More information about the libc-commits
mailing list