\hypertarget{BWAssert_8h}{\section{trunk/bwapi/\-Test\-A\-I\-Module/\-Source/\-B\-W\-Assert.h \-File \-Reference}
\label{BWAssert_8h}\index{trunk/bwapi/\-Test\-A\-I\-Module/\-Source/\-B\-W\-Assert.\-h@{trunk/bwapi/\-Test\-A\-I\-Module/\-Source/\-B\-W\-Assert.\-h}}
}
\-This graph shows which files directly or indirectly include this file\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{BWAssert_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{\-Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{BWAssert_8h_a578a87147c059c30aa950756a197c11f}{\-B\-W\-Assert}(\-C)
\item 
\#define \hyperlink{BWAssert_8h_ae718b572a5a89de06acba8d18b6b0794}{\-B\-W\-Assert\-F}(\-C, \-Fail\-Block)
\item 
\#define \hyperlink{BWAssert_8h_a4971994898fdd4212ba7614df9a03ce2}{\-B\-W\-Assert\-Err}(\-C, \-E)
\end{DoxyCompactItemize}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{BWAssert_8h_a5ed8e2adc6340d877478a62cc1d448c9}{log} (const char $\ast$format,...)
\end{DoxyCompactItemize}
\subsection*{\-Variables}
\begin{DoxyCompactItemize}
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{BWAssert_8h_ac564425f10b5601c839c201cb6309fe6}{assert\-\_\-success\-\_\-count}
\item 
\hyperlink{Detours_8h_ab5a791e918b09a41addbf5b813175633}{int} \hyperlink{BWAssert_8h_a498a64dad091aca6f759247e47a6db05}{assert\-\_\-fail\-\_\-count}
\end{DoxyCompactItemize}


\subsection{\-Define \-Documentation}
\hypertarget{BWAssert_8h_a578a87147c059c30aa950756a197c11f}{\index{\-B\-W\-Assert.\-h@{\-B\-W\-Assert.\-h}!\-B\-W\-Assert@{\-B\-W\-Assert}}
\index{\-B\-W\-Assert@{\-B\-W\-Assert}!BWAssert.h@{\-B\-W\-Assert.\-h}}
\subsubsection[{\-B\-W\-Assert}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-B\-W\-Assert}(
\begin{DoxyParamCaption}
\item[{}]{\-C}
\end{DoxyParamCaption}
)}}\label{BWAssert_8h_a578a87147c059c30aa950756a197c11f}
{\bfseries \-Value\-:}
\begin{DoxyCode}
{\
  if (!(C))\
  {\
    log("Assert failed @%s:%u (%s)",__FILE__,__LINE__,Broodwar->getLastError().
      toString().c_str());\
    assert_fail_count++;\
  }\
  else\
  {\
    assert_success_count++;\
  }\
}
\end{DoxyCode}
\hypertarget{BWAssert_8h_a4971994898fdd4212ba7614df9a03ce2}{\index{\-B\-W\-Assert.\-h@{\-B\-W\-Assert.\-h}!\-B\-W\-Assert\-Err@{\-B\-W\-Assert\-Err}}
\index{\-B\-W\-Assert\-Err@{\-B\-W\-Assert\-Err}!BWAssert.h@{\-B\-W\-Assert.\-h}}
\subsubsection[{\-B\-W\-Assert\-Err}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-B\-W\-Assert\-Err}(
\begin{DoxyParamCaption}
\item[{}]{\-C, }
\item[{}]{\-E}
\end{DoxyParamCaption}
)}}\label{BWAssert_8h_a4971994898fdd4212ba7614df9a03ce2}
{\bfseries \-Value\-:}
\begin{DoxyCode}
{\
  if (!(C))\
  {\
    log("Assert failed @%s:%u (%s)",__FILE__,__LINE__,E);\
    assert_fail_count++;\
  }\
  else\
  {\
    assert_success_count++;\
  }\
}
\end{DoxyCode}
\hypertarget{BWAssert_8h_ae718b572a5a89de06acba8d18b6b0794}{\index{\-B\-W\-Assert.\-h@{\-B\-W\-Assert.\-h}!\-B\-W\-Assert\-F@{\-B\-W\-Assert\-F}}
\index{\-B\-W\-Assert\-F@{\-B\-W\-Assert\-F}!BWAssert.h@{\-B\-W\-Assert.\-h}}
\subsubsection[{\-B\-W\-Assert\-F}]{\setlength{\rightskip}{0pt plus 5cm}\#define {\bf \-B\-W\-Assert\-F}(
\begin{DoxyParamCaption}
\item[{}]{\-C, }
\item[{}]{\-Fail\-Block}
\end{DoxyParamCaption}
)}}\label{BWAssert_8h_ae718b572a5a89de06acba8d18b6b0794}
{\bfseries \-Value\-:}
\begin{DoxyCode}
{\
  if (!(C))\
  {\
    log("Assert failed @%s:%u (%s)",__FILE__,__LINE__,Broodwar->getLastError().
      toString().c_str());\
    assert_fail_count++;\
    {FailBlock}\
  }\
  else\
  {\
    assert_success_count++;\
  }\
}
\end{DoxyCode}


\subsection{\-Function \-Documentation}
\hypertarget{BWAssert_8h_a5ed8e2adc6340d877478a62cc1d448c9}{\index{\-B\-W\-Assert.\-h@{\-B\-W\-Assert.\-h}!log@{log}}
\index{log@{log}!BWAssert.h@{\-B\-W\-Assert.\-h}}
\subsubsection[{log}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf log} (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{format, }
\item[{}]{...}
\end{DoxyParamCaption}
)}}\label{BWAssert_8h_a5ed8e2adc6340d877478a62cc1d448c9}


\-Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=256pt]{BWAssert_8h_a5ed8e2adc6340d877478a62cc1d448c9_cgraph}
\end{center}
\end{figure}




\-Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=550pt]{BWAssert_8h_a5ed8e2adc6340d877478a62cc1d448c9_icgraph}
\end{center}
\end{figure}




\subsection{\-Variable \-Documentation}
\hypertarget{BWAssert_8h_a498a64dad091aca6f759247e47a6db05}{\index{\-B\-W\-Assert.\-h@{\-B\-W\-Assert.\-h}!assert\-\_\-fail\-\_\-count@{assert\-\_\-fail\-\_\-count}}
\index{assert\-\_\-fail\-\_\-count@{assert\-\_\-fail\-\_\-count}!BWAssert.h@{\-B\-W\-Assert.\-h}}
\subsubsection[{assert\-\_\-fail\-\_\-count}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} {\bf assert\-\_\-fail\-\_\-count}}}\label{BWAssert_8h_a498a64dad091aca6f759247e47a6db05}
\hypertarget{BWAssert_8h_ac564425f10b5601c839c201cb6309fe6}{\index{\-B\-W\-Assert.\-h@{\-B\-W\-Assert.\-h}!assert\-\_\-success\-\_\-count@{assert\-\_\-success\-\_\-count}}
\index{assert\-\_\-success\-\_\-count@{assert\-\_\-success\-\_\-count}!BWAssert.h@{\-B\-W\-Assert.\-h}}
\subsubsection[{assert\-\_\-success\-\_\-count}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} {\bf assert\-\_\-success\-\_\-count}}}\label{BWAssert_8h_ac564425f10b5601c839c201cb6309fe6}
