Browse Source

don't use reserved identifier pattern in stringify()

1.4
Oswald Buddenhagen 5 years ago
parent
commit
b885e0e03a
  1. 4
      src/common.h

4
src/common.h

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

Loading…
Cancel
Save