mirror of https://github.com/CGAL/cgal
Add const.
This commit is contained in:
parent
190d15826d
commit
f91d43c47b
|
|
@ -23,7 +23,7 @@ extern "C" {
|
||||||
// Own assertion macro
|
// Own assertion macro
|
||||||
// ================================================
|
// ================================================
|
||||||
|
|
||||||
void cc_assertion_error( char *cond, char *fname, int line) {
|
void cc_assertion_error(const char *cond, const char *fname, int line) {
|
||||||
cerr << endl << "fatal error: assertion '" << cond << "' failed in line "
|
cerr << endl << "fatal error: assertion '" << cond << "' failed in line "
|
||||||
<< line << " of file '" << fname << "'." << endl;
|
<< line << " of file '" << fname << "'." << endl;
|
||||||
abort();
|
abort();
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ using namespace std;
|
||||||
// Own assertion macro
|
// Own assertion macro
|
||||||
// ================================================
|
// ================================================
|
||||||
|
|
||||||
void cc_assertion_error( char *cond, char *fname, int line);
|
void cc_assertion_error(const char *cond, const char *fname, int line);
|
||||||
|
|
||||||
#if !NDEBUG
|
#if !NDEBUG
|
||||||
#define CC_Assert( cond) {\
|
#define CC_Assert( cond) {\
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue