TeX/include/TeX/defs.h

24 lines
418 B
C

//---
// defs: Just generic definitions
//---
#ifndef DEFS_H
#define DEFS_H
/* uint type for bit fields */
typedef unsigned int uint;
/* min(), max() - But don't duplicate side-effects */
#define min(a, b) ({ \
__auto_type _a = (a); \
__auto_type _b = (b); \
_a < _b ? _a : _b; \
})
#define max(a, b) ({ \
__auto_type _a = (a); \
__auto_type _b = (b); \
_a > _b ? _a : _b; \
})
#endif /* DEFS_H */