src/assert.cpp

Go to the documentation of this file.
00001 
00002 
00003 
00004 
00010 #include <iostream>
00011 
00012 namespace tpp {
00013 
00019 bool MyAssertFunction( bool b, char* desc, int line, char* file){
00020         if (b) return true;
00021         std::cerr << "\n\nAssertion Failure\n";
00022         std::cerr << "Description : " << desc << std::endl;
00023         std::cerr << "Filename    : " << file << std::endl;
00024         std::cerr << "Line No     : " << line << std::endl;
00025         exit(1);
00026 }
00027 
00028 
00029 } // end of namespace

Generated on Fri Nov 3 21:59:02 2006 for Triangle++ by  doxygen 1.4.6