TeX/include/TeX/defs.h

24 lines
417 B
C
Raw Normal View History

//---
// defs: Just generic definitions
//---
#ifndef DEFS_H
#define DEFS_H
/* uint type for bit fields */
typedef unsigned int uint;
2019-06-12 18:53:50 +02:00
/* 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 */