TeX/include/TeX/defs.h

27 lines
478 B
C
Raw Permalink 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; \
})
2019-06-19 17:52:09 +02:00
/* Attributes */
#define TEX_UNUSED __attribute__((unused))
#endif /* DEFS_H */