don't use reserved identifier pattern in stringify()

This commit is contained in:
Oswald Buddenhagen 2019-07-28 22:31:41 +02:00
parent 85688d1c1a
commit b885e0e03a

View File

@ -37,8 +37,8 @@ typedef unsigned long ulong;
#define as(ar) (sizeof(ar)/sizeof(ar[0])) #define as(ar) (sizeof(ar)/sizeof(ar[0]))
#define __stringify(x) #x #define stringify__(x) #x
#define stringify(x) __stringify(x) #define stringify(x) stringify__(x)
#define shifted_bit(in, from, to) \ #define shifted_bit(in, from, to) \
(((uint)(in) / (from > to ? from / to : 1) * (to > from ? to / from : 1)) & to) (((uint)(in) / (from > to ? from / to : 1) * (to > from ? to / from : 1)) & to)