Date: Wed, 31 Jul 1996 10:20:26 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: michaelv@HeadCandy.com (Michael L. VanLoon -- HeadCandy.com) Cc: michaelh@cet.co.jp, Hackers@FreeBSD.ORG Subject: Re: kernel assertions (Rev. 1) Message-ID: <199607311720.KAA02301@phaeton.artisoft.com> In-Reply-To: <199607310640.XAA02552@MindBender.HeadCandy.com> from "Michael L. VanLoon -- HeadCandy.com" at Jul 30, 96 11:40:05 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> >The REQUIRE2 stuff can replace the > > > >#ifdef DIAGNOSTICS > > if (expr) > > panic(expl); > >#endif > > I prefer asserts to call "Debugger()", rather than "panic()", and > that's how I write my assertion macros. How are you supposed to debug > something if it panics? By having: #ifdef DIAGNOSTICS Debugger(exp1); return; #endif /* DIAGNOSTICS*/ In panic? Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607311720.KAA02301>