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:
Kip Macy 2006-12-26 02:48:42 +00:00
parent 906d81412d
commit a8248daa3e

View File

@ -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 */