Protect some sections agains clang-format

This commit is contained in:
Rodrigo Arias 2022-09-29 15:05:09 +02:00
parent 6169bfc966
commit f6a57764d4
2 changed files with 6 additions and 0 deletions

View File

@ -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 */

2
emu.h
View File

@ -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 */