Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177839884
D57391.1795405695.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D57391.1795405695.diff
View Options
diff --git a/include/assert.h b/include/assert.h
--- a/include/assert.h
+++ b/include/assert.h
@@ -46,11 +46,11 @@
#undef __assert_unreachable
#ifdef NDEBUG
-#define assert(e) ((void)0)
-#define _assert(e) ((void)0)
+#define assert(e) ((void)0)
+#define _assert(e) ((void)0)
#if __BSD_VISIBLE
-#define __assert_unreachable() __unreachable()
-#endif /* __BSD_VISIBLE */
+#define __assert_unreachable() __unreachable()
+#endif /* __BSD_VISIBLE */
#else
#ifdef __cplusplus
#if __cplusplus < 202002L
@@ -71,25 +71,25 @@
* of the remaining guarantees.
*
*/
-#define __assert_sanitize(...) ((void)0)
+#define __assert_sanitize(...) ((void)0)
#else
-#define __assert_sanitize(...) (void)sizeof(((bool(*)(bool))0)(__VA_ARGS__))
+#define __assert_sanitize(...) (void)sizeof(((bool(*)(bool))0)(__VA_ARGS__))
#endif /* __cplusplus < 202002L */
#else
-#define __assert_sanitize(...) (void)sizeof(((_Bool(*)(_Bool))0)(__VA_ARGS__))
+#define __assert_sanitize(...) (void)sizeof(((_Bool(*)(_Bool))0)(__VA_ARGS__))
#endif /* __cplusplus */
-#define assert(...) (__assert_sanitize(__VA_ARGS__), \
+#define assert(...) (__assert_sanitize(__VA_ARGS__), \
(__VA_ARGS__) ? (void)0 : \
__assert(__func__, __FILE__, \
__LINE__, #__VA_ARGS__))
-#define _assert(...) assert(__VA_ARGS__)
+#define _assert(...) assert(__VA_ARGS__)
#if __BSD_VISIBLE
-#define __assert_unreachable() assert(0 && "unreachable segment reached")
-#endif /* __BSD_VISIBLE */
+#define __assert_unreachable() assert(0 && "unreachable segment reached")
+#endif /* __BSD_VISIBLE */
#endif /* NDEBUG */
#ifndef __STDC_VERSION_ASSERT_H__
-#define __STDC_VERSION_ASSERT_H__ 202311L
+#define __STDC_VERSION_ASSERT_H__ 202311L
/*
* Static assertions. In principle we could define static_assert for
@@ -105,7 +105,7 @@
*/
#if __ISO_C_VISIBLE >= 2011 && !defined(__cplusplus) && \
__STDC_VERSION__ < 202311L
-#define static_assert _Static_assert
+#define static_assert _Static_assert
#endif
__BEGIN_DECLS
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 3:48 AM (6 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41922047
Default Alt Text
D57391.1795405695.diff (1 KB)
Attached To
Mode
D57391: assert.h: style(9): Space after #define, between #endif and comment
Attached
Detach File
Event Timeline