Main Page   Interface   Data Structures   File List   Data Fields   Globals  

BUG.h File Reference

Defines a set of routines for bugchecking the CPU. More...


Functions

void BUG_check (int status, const char *reason,...)
 Simple routine to declare a BUG check. More...


Detailed Description

Defines a set of routines for bugchecking the CPU.

Author:
JJRussell - russell@slac.stanford.edu
These are really just placeholders until a more serious set of routines can be written.


Function Documentation

void BUG_check int    status,
const char *    reason,
...   
 

Simple routine to declare a BUG check.

Parameters:
status  A status value to be associated with the failure
reason  A C-style formatting string
Prints a simple message consisting of the status value and a string. The string is formatted using the reason as a C-style formatting string which consumes the remaining arguments.

EXAMPLE

BUG_check (0xdeadbeef,
          "Mad Cow Disease takes over GFS inflicting %d programmers\n",
          nProgrammers);


Generated on Fri Mar 1 16:56:55 2002 by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001