turn non-INVARIANT KASSERT into an empty but real C
statement so that syntax errors will still be caught even if INVARIANTS aren't enabled in the config file
This commit is contained in:
parent
daaaed022c
commit
08c1269d82
@ -83,8 +83,11 @@ extern int maxusers; /* system tune hint */
|
||||
} \
|
||||
} while (0)
|
||||
#else
|
||||
#define KASSERT(exp,msg)
|
||||
#define VNASSERT(exp, vp, msg)
|
||||
#define KASSERT(exp,msg) do { \
|
||||
} while (0)
|
||||
|
||||
#define VNASSERT(exp, vp, msg) do { \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifndef CTASSERT /* Allow lint to override */
|
||||
|
Loading…
Reference in New Issue
Block a user