Revision f4a60a9b lib/birdlib.h

View differences:

lib/birdlib.h
34 34
#define ABS(a)   ((a)>=0 ? (a) : -(a))
35 35
#define DELTA(a,b) (((a)>=(b))?(a)-(b):(b)-(a))
36 36
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a)))
37
#define CALL(fn, args...) ({ if (fn) fn(args); })
37 38

  
38 39
static inline int uint_cmp(uint i1, uint i2)
39 40
{ return (int)(i1 > i2) - (int)(i1 < i2); }

Also available in: Unified diff