src/Generic/commandLineInterface/CommandLineInterface.cpp
/** Report an unhandled error, and return -1. */
Report an unhandled error, and return -1.
Report an unhandled error and return - 1 .
int reportError(const char *what, const char *source) {
		cerr << "\n" << what << endl;
		if (source)
			cerr << "Error Source: " << source << endl;
		checkHeap("main(); About to exit due to error");
		#if defined(_DEBUG) || defined(_UNOPTIMIZED)
			cerr << "Press enter to exit..." << endl;
			getchar();
		#endif
		return -1;
	}
int reportError ( const char * what , const char * source ) { cerr << " \n " << what << endl ; if ( source ) cerr << " " << source << endl ; checkHeap ( " " ) ; #if defined ( _DEBUG ) || defined ( _UNOPTIMIZED ) cerr << " " << endl ; getchar ( ) ; #endif return -1 ; }
Report an unhandled error, and return -1.
Report an unhandled error and return - 1 .