diff options
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/dev_ext_trampoline.c | 3 | ||||
| -rw-r--r-- | loader/phys_dev_ext.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/loader/dev_ext_trampoline.c b/loader/dev_ext_trampoline.c index e1ffa37c..5de697c2 100644 --- a/loader/dev_ext_trampoline.c +++ b/loader/dev_ext_trampoline.c @@ -24,6 +24,9 @@ #pragma GCC optimize(3) // force gcc to use tail-calls #endif +// Clang-format does not understand macros. +// clang-format off + // Trampoline function macro for unknown physical device extension command. #define DevExtTramp(num) \ VKAPI_ATTR void VKAPI_CALL vkdev_ext##num(VkDevice device) { \ diff --git a/loader/phys_dev_ext.c b/loader/phys_dev_ext.c index 90830250..27a09ef3 100644 --- a/loader/phys_dev_ext.c +++ b/loader/phys_dev_ext.c @@ -60,6 +60,9 @@ VKAPI_ATTR void VKAPI_CALL vkPhysDevExtTermin##num( \ icd_term->phys_dev_ext[num](phys_dev_term->phys_dev); \ } +// Disable clang-format for lists of macros +// clang-format off + // Instantiations of the trampoline and terminator PhysDevExtTramp(0) PhysDevExtTermin(0) PhysDevExtTramp(1) PhysDevExtTermin(1) |
