CGAL 6.2 - STL Extensions for CGAL

Loading...
Searching...
No Matches
Assertions and Failure Behavior
Reference Manual

##

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

  type | is a string that contains one of the words precondition, postcondition, assertion or warning.
  expression | contains the expression that was violated.
  file,line | contain the place where the check was made.
  explanation | contains 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

enum CGAL::Failure_behaviour

`#include <CGAL/assertions_behaviour.h>`

Enumerator
ABORT |
EXIT |
EXIT_WITH_SUCCESS |
CONTINUE |
THROW_EXCEPTION |