CGAL 5.1 - 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. More...
 
Failure_function CGAL::set_warning_handler (Failure_function handler)
 This function is not thread safe. More...
 
Failure_behaviour CGAL::set_error_behaviour (Failure_behaviour eb)
 This function is not thread safe. More...
 
Failure_behaviour CGAL::set_warning_behaviour (Failure_behaviour eb)
 This function is not thread safe. More...
 

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 

Function Documentation

◆ set_error_behaviour()

Failure_behaviour CGAL::set_error_behaviour ( Failure_behaviour  eb)

#include <CGAL/assertions_behaviour.h>

This function is not thread safe.

◆ set_error_handler()

Failure_function CGAL::set_error_handler ( Failure_function  handler)

#include <CGAL/assertions_behaviour.h>

This function is not thread safe.

◆ set_warning_behaviour()

Failure_behaviour CGAL::set_warning_behaviour ( Failure_behaviour  eb)

#include <CGAL/assertions_behaviour.h>

This function is not thread safe.

◆ set_warning_handler()

Failure_function CGAL::set_warning_handler ( Failure_function  handler)

#include <CGAL/assertions_behaviour.h>

This function is not thread safe.