CGAL 5.3 - STL Extensions for CGAL
Assertions and Failure Behaviour

enum  CGAL::Failure_behaviour {
  CGAL::ABORT, CGAL::EXIT, CGAL::EXIT_WITH_SUCCESS, CGAL::CONTINUE,
  CGAL::THROW_EXCEPTION
}
 
typedef void(* CGAL::Failure_function) (const char *type, const char *expression, const char *file, int line, const char *explanation)
 
Failure_function CGAL::set_error_handler (Failure_function handler)
 This function is not thread safe.
 
Failure_function CGAL::set_warning_handler (Failure_function handler)
 This function is not thread safe.
 
Failure_behaviour CGAL::set_error_behaviour (Failure_behaviour eb)
 This function is not thread safe.
 
Failure_behaviour CGAL::set_warning_behaviour (Failure_behaviour eb)
 This function is not thread safe.
 

Typedef Documentation

◆ Failure_function

typedef void(* CGAL::Failure_function) (const char *type, const char *expression, const char *file, int line, const char *explanation)

#include <CGAL/assertions_behaviour.h>

Parameters
typeis a string that contains one of the words precondition, postcondition, assertion or warning.
expressioncontains the expression that was violated.
file,linecontain the place where the check was made.
explanationcontains an explanation of what was checked. It can be null_ptr, in which case the expression is thought to be descriptive enough.

Enumeration Type Documentation

◆ Failure_behaviour

#include <CGAL/assertions_behaviour.h>

Enumerator
ABORT 
EXIT 
EXIT_WITH_SUCCESS 
CONTINUE 
THROW_EXCEPTION