Use edge matrix instead of linked list for quiver
[clav.git] / macros.h
blobce73422b870dc27ba7898b50d3eba84025e40372
1 #define UNUSED(x) (void) (sizeof(x))
3 #define STR2(x) #x
4 #define STR(x) STR2(x)
6 #define L(x) __FILE__ ":" STR(__LINE__) ": " x
8 #define MAX(x, y) (((x) > (y)) ? (x) : (y))
9 #define SGN(x) ((x) > 0) ? 1 : ((x) < 0 ? -1 : 0)
10 #define UBSAFES(s) ((s) ? (s) : "[None]")
12 #define IF_NZ_SET(s, v) if(s) { *(s) = (v); }