diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/common.h b/src/common.h index 895fedc..2633c83 100644 --- a/src/common.h +++ b/src/common.h @@ -158,19 +158,19 @@ struct location_provider { }; -#define LIST_RAMPS_STOP_VALUE_TYPES\ - X(u8, uint8_t, UINT8_MAX + 1ULL, UINT8_MAX, 8)\ - X(u16, uint16_t, UINT16_MAX + 1ULL, UINT16_MAX, 16)\ - X(u32, uint32_t, UINT32_MAX + 1ULL, UINT32_MAX, 32)\ - X(u64, uint64_t, UINT64_MAX, UINT64_MAX, 64)\ - X(float, float, 1, 1, -1)\ +#define LIST_RAMPS_STOP_VALUE_TYPES(X, D)\ + X(u8, uint8_t, UINT8_MAX + 1ULL, UINT8_MAX, 8) D\ + X(u16, uint16_t, UINT16_MAX + 1ULL, UINT16_MAX, 16) D\ + X(u32, uint32_t, UINT32_MAX + 1ULL, UINT32_MAX, 32) D\ + X(u64, uint64_t, UINT64_MAX, UINT64_MAX, 64) D\ + X(float, float, 1, 1, -1) D\ X(double, double, 1, 1, -2) #define X(SUFFIX, TYPE, MAX, TRUE_MAX, DEPTH)\ void colorramp_fill_##SUFFIX(TYPE *gamma_r, TYPE *gamma_g, TYPE *gamma_b,\ size_t size_r, size_t size_g, size_t size_b,\ - const struct color_setting *setting); -LIST_RAMPS_STOP_VALUE_TYPES + const struct color_setting *setting) +LIST_RAMPS_STOP_VALUE_TYPES(X, ;); #undef X |