From f6a57764d4189430373eedee0a1be3ec7f46b3ef Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 29 Sep 2022 15:05:09 +0200 Subject: [PATCH] Protect some sections agains clang-format --- common.h | 4 ++++ emu.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/common.h b/common.h index 6ca66fd..23d1eac 100644 --- a/common.h +++ b/common.h @@ -9,6 +9,8 @@ /* Debug macros */ +/* clang-format off */ + #ifdef ENABLE_DEBUG # define dbg(...) fprintf(stderr, __VA_ARGS__); #else @@ -25,4 +27,6 @@ /* Poison assert */ #pragma GCC poison assert +/* clang-format on */ + #endif /* COMMON_H */ diff --git a/emu.h b/emu.h index 045584d..a374ad2 100644 --- a/emu.h +++ b/emu.h @@ -232,6 +232,7 @@ enum chan_dirty { CHAN_DIRTY_VALUE = 2, }; +/* clang-format off */ static const int chan_to_prvtype[CHAN_MAX] = { [CHAN_OVNI_PID] = 1, [CHAN_OVNI_TID] = 2, @@ -255,6 +256,7 @@ static const int chan_to_prvtype[CHAN_MAX] = { [CHAN_NANOS6_THREAD] = 39, [CHAN_KERNEL_CS] = 45, }; +/* clang-format on */ struct ovni_chan { /* Channel id */