\hypertarget{BUG_8h}{
\section{BUG.h File Reference}
\label{BUG_8h}\index{BUG.h@{BUG.h}}
}
Defines a set of routines for bugchecking the CPU. 


\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{BUG_8h_a0}{BUG\_\-check} (int status, const char $\ast$reason,...)
\begin{CompactList}\small\item\em Simple routine to declare a BUG check.\item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Defines a set of routines for bugchecking the CPU.



\begin{Desc}
\item[Author: ]\par
JJRussell - \href{mailto:russell@slac.stanford.edu}{\tt russell@slac.stanford.edu}\end{Desc}
These are really just placeholders until a more serious set of routines can be written.



\subsection{Function Documentation}
\hypertarget{BUG_8h_a0}{
\index{BUG.h@{BUG.h}!BUG_check@{BUG\_\-check}}
\index{BUG_check@{BUG\_\-check}!BUG.h@{BUG.h}}
\subsubsection[BUG\_\-check]{\setlength{\rightskip}{0pt plus 5cm}void BUG\_\-check (int {\em status}, const char $\ast$ {\em reason}, ...)}}
\label{BUG_8h_a0}


Simple routine to declare a BUG check.

\begin{Desc}
\item[Parameters: ]\par
\begin{description}
\item[{\em 
status}]A status value to be associated with the failure \item[{\em 
reason}]A C-style formatting string\end{description}
\end{Desc}
Prints a simple message consisting of the status value and a string. The string is formatted using the {\em reason} as a C-style formatting string which consumes the remaining arguments.

{\bf EXAMPLE} \par
 \par
 

\footnotesize\begin{verbatim}
BUG_check (0xdeadbeef,
          "Mad Cow Disease takes over GFS inflicting %d programmers\n",
          nProgrammers);
\end{verbatim}\normalsize 
 \par
 