Allow linters to override the CTASSERT macro, since they are unlikely to

like the results.
This commit is contained in:
phk 2003-01-15 19:18:49 +00:00
parent cc2b1f1c63
commit 2a0a287268

View File

@ -81,9 +81,11 @@ extern int maxusers; /* system tune hint */
#define KASSERT(exp,msg)
#endif
#ifndef CTASSERT /* Allow lint to override */
#define CTASSERT(x) _CTASSERT(x, __LINE__)
#define _CTASSERT(x, y) __CTASSERT(x, y)
#define __CTASSERT(x, y) typedef char __assert ## y[(x) ? 1 : -1]
#endif
/*
* XXX the hints declarations are even more misplaced than most declarations