// // Includes // #include "AssertCG.h" #include #ifdef _WIN32 #include #endif #include #include #include void cg_assert(const char * zFile, unsigned int nLine) { CGerror nError; const char * zErrorString; if ((nError = cgGetError()) != CG_NO_ERROR) { zErrorString = cgGetErrorString(nError); std::cerr << "Assertion failed (" << zFile << ":" << nLine << ": " << zErrorString << std::endl; exit(-2); } }