loader: Protect loader macro lists from clang-format

Change-Id: I3e943a538d33737453a3e71edebbd026a1c7f6f3
This commit is contained in:
Mark Lobodzinski 2017-01-26 12:22:32 -07:00
parent 32be7d001e
commit 1a6065da5d
2 changed files with 6 additions and 0 deletions

View File

@ -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) { \

View File

@ -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)