From af9d4281eb867bcf1ed938d111f9ccd6a7f24e94 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 31 Aug 2021 01:35:54 +0200 Subject: [PATCH] LibC: Run clang-format on setjmp.h --- Userland/Libraries/LibC/setjmp.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Userland/Libraries/LibC/setjmp.h b/Userland/Libraries/LibC/setjmp.h index 2c59fc45e1..f55eba523b 100644 --- a/Userland/Libraries/LibC/setjmp.h +++ b/Userland/Libraries/LibC/setjmp.h @@ -48,21 +48,19 @@ struct __jmp_buf { typedef struct __jmp_buf jmp_buf[1]; typedef struct __jmp_buf sigjmp_buf[1]; - /** - * Since setjmp.h may be included in ports / c-projects, we need to guard this - * + * Since setjmp.h may be included by ports written in C, we need to guard this. */ #ifdef __cplusplus - #ifdef __i386__ - static_assert(sizeof(struct __jmp_buf) == 32, "struct __jmp_buf unsynchronized with i386/setjmp.S"); - #elif __x86_64__ - static_assert(sizeof(struct __jmp_buf) == 72, "struct __jmp_buf unsynchronized with x86_64/setjmp.S"); - #elif __aarch64__ - static_assert(sizeof(struct __jmp_buf) == 184, "struct __jmp_buf unsynchronized with aarch64/setjmp.S"); - #else - #error - #endif +# ifdef __i386__ +static_assert(sizeof(struct __jmp_buf) == 32, "struct __jmp_buf unsynchronized with i386/setjmp.S"); +# elif __x86_64__ +static_assert(sizeof(struct __jmp_buf) == 72, "struct __jmp_buf unsynchronized with x86_64/setjmp.S"); +# elif __aarch64__ +static_assert(sizeof(struct __jmp_buf) == 184, "struct __jmp_buf unsynchronized with aarch64/setjmp.S"); +# else +# error +# endif #endif /**