Allow linters to override the CTASSERT macro, since they are unlikely to
like the results.
This commit is contained in:
parent
cc2b1f1c63
commit
2a0a287268
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user