[libc-commits] [PATCH] D106087: [libc] Relocate the closing directive of #ifdef

Hedin GarcĂ­a via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jul 15 11:33:28 PDT 2021


hedingarcia created this revision.
hedingarcia added a reviewer: sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added a project: libc-project.
hedingarcia requested review of this revision.

Changed where an #endif was placed because previously it
prevented three macro definitions from being enable in Windows.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D106087

Files:
  libc/utils/UnitTest/LibcTest.h


Index: libc/utils/UnitTest/LibcTest.h
===================================================================
--- libc/utils/UnitTest/LibcTest.h
+++ libc/utils/UnitTest/LibcTest.h
@@ -379,13 +379,13 @@
 #define ASSERT_DEATH(FUNC, EXIT)                                               \
   if (!EXPECT_DEATH(FUNC, EXIT))                                               \
   return
+  
+#endif // ENABLE_SUBPROCESS_TESTS
 
 #define __CAT1(a, b) a##b
 #define __CAT(a, b) __CAT1(a, b)
 #define UNIQUE_VAR(prefix) __CAT(prefix, __LINE__)
 
-#endif // ENABLE_SUBPROCESS_TESTS
-
 #define EXPECT_THAT(MATCH, MATCHER)                                            \
   do {                                                                         \
     auto UNIQUE_VAR(__matcher) = (MATCHER);                                    \


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106087.359069.patch
Type: text/x-patch
Size: 811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210715/ff870d27/attachment-0001.bin>


More information about the libc-commits mailing list