KASSERT - kernel expression verification macro
#include <sys/param.h>
#include <sys/systm.h>
KASSERT (expression msg);
In a kernel that does not have
options INVARIANTS
the
KASSERT ();
macro is defined to be a no-op.
The
second argument is a
printf(9)
format string and its arguments,
enclosed in parentheses.
void vput(vp) struct vnode *vp; { struct proc *p = curproc; KASSERT(vp != NULL, ("vput: null vp")); ... }
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |