1234567891011121314151617181920 |
- \hypertarget{debug_8hpp_source}{}\doxysection{debug.\+hpp}
- \label{debug_8hpp_source}\index{src/debug.hpp@{src/debug.hpp}}
- \mbox{\hyperlink{debug_8hpp}{Go to the documentation of this file.}}
- \begin{DoxyCode}{0}
- \DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef DEBUG\_HPP}}
- \DoxyCodeLine{2 \textcolor{preprocessor}{\#define DEBUG\_HPP}}
- \DoxyCodeLine{3 }
- \DoxyCodeLine{4 \textcolor{preprocessor}{\#include <iostream>}}
- \DoxyCodeLine{5 \textcolor{keyword}{using namespace }std;}
- \DoxyCodeLine{6 }
- \DoxyCodeLine{7 \textcolor{preprocessor}{\#ifdef DEBUG}}
- \DoxyCodeLine{8 \textcolor{preprocessor}{\#define assert(cond) if(!(cond))\{cout<<"{}Assertion failed @ "{}}<<\_\_FILE\_\_<<"{}:"{}<<\_\_LINE\_\_<<endl;exit(0);\}}
- \DoxyCodeLine{9 \textcolor{preprocessor}{\#else}}
- \DoxyCodeLine{10 \textcolor{preprocessor}{\#define NDEBUG}}
- \DoxyCodeLine{11 \textcolor{preprocessor}{\#define assert(cond)}}
- \DoxyCodeLine{12 \textcolor{preprocessor}{\#endif}}
- \DoxyCodeLine{13 }
- \DoxyCodeLine{14 \textcolor{preprocessor}{\#endif}}
- \end{DoxyCode}
|