\hypertarget{BUG_8h}{
\section{BUG.h File Reference}
\label{BUG_8h}\index{BUG.h@{BUG.h}}
}
Bugchecks the CPU, used when a irrecoverable error occurs.  


\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{BUG_8h_adc1809084d60fd3a63511d86d3d81db}{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}
Bugchecks the CPU, used when a irrecoverable error occurs. 

\begin{Desc}
\item[Author:]JJRussell - \href{mailto:russell@slac.stanford.edu}{\tt russell@slac.stanford.edu}\end{Desc}


\footnotesize\begin{verbatim}

    CVS $Id: BUG.h,v 1.1.1.1 2003/05/20 19:01:42 russell Exp $
\end{verbatim}
\normalsize


These are really just placeholders until a more serious set of routines can be written. 

\subsection{Function Documentation}
\hypertarget{BUG_8h_adc1809084d60fd3a63511d86d3d81db}{
\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}, \/   {\em ...})}}
\label{BUG_8h_adc1809084d60fd3a63511d86d3d81db}


Simple routine to declare a BUG check. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em status}]Status code indicating the reason for the bug check \item[{\em reason}]A {\em printf()\/} style format string followed by the arguments\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
 

References PBS\_\-panic(), and REG\_\-LR.