Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 1996 23:40:05 -0700
From:      "Michael L. VanLoon -- HeadCandy.com" <michaelv@HeadCandy.com>
To:        Michael Hancock <michaelh@cet.co.jp>
Cc:        FreeBSD Hackers <Hackers@freebsd.org>
Subject:   Re: kernel assertions (Rev. 1) 
Message-ID:  <199607310640.XAA02552@MindBender.HeadCandy.com>
In-Reply-To: Your message of Wed, 31 Jul 96 15:07:14 %2B0900. <Pine.SV4.3.93.960731135230.12103C-100000@parkplace.cet.co.jp> 

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?

-----------------------------------------------------------------------------
  Michael L. VanLoon                                 michaelv@HeadCandy.com
        --<  Free your mind and your machine -- NetBSD free un*x  >--
    NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3,
        Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32...
    NetBSD ports in progress: PICA, others...

   Roll your own Internet access -- Seattle People's Internet cooperative.
                  If you're in the Seattle area, ask me how.
-----------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607310640.XAA02552>