2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

add ISC_MAGIC('a','b','c','d') to make specifying magic numbers a bit more

readable
This commit is contained in:
Michael Graff
2000-05-10 17:06:57 +00:00
parent 1cf2ee1ef0
commit 86bf5e8c34

View File

@@ -20,4 +20,8 @@
#define ISC_MAGIC_VALID(a,b) (((a) != NULL) && ((a)->magic == (b)))
#define ISC_MAGIC(a, b, c, d) ((unsigned int)(a) << 24 \
| (unsigned int)(b) << 16 \
| (unsigned int)(c) << 8 | (d))
#endif /* ISC_MAGIC_H */