#include <limits>
#include "MGIS/Config-c.h"
|
| namespace | mgis |
| | the namespace mgis encloses all the MGIS project.
|
| |
|
|
using | mgis::size_type = mgis_size_type |
| | a simple alias to the the default indexing type used by mgis
|
| |
|
using | mgis::real = mgis_real |
| | alias to the numeric type used
|
| |
- Author
- Thomas Helfer
- Date
- 19/06/2018
- Copyright
- (C) Copyright Thomas Helfer 2018. Use, modification and distribution are subject to one of the following licences:
- GNU Lesser General Public License (LGPL), Version 3.0. (See accompanying file LGPL-3.0.txt)
- CECILL-C, Version 1.0 (See accompanying files CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt).
◆ contract_violation_policy
| constexpr auto mgis::config::contract_violation_policy |
|
inlineconstexpr |
Initial value:=
ContractViolationPolicy::ABORT
variable stating which policy is used for reporting a contract violation
By default, std::abort is called.
If MGIS_USE_EXCEPTIONS_FOR_CONTRACT_VIOLATION is defined mgis::raise is called.
◆ default_error_report_policy
| constexpr auto mgis::config::default_error_report_policy |
|
inlineconstexpr |
Initial value:=
ErrorReportPolicy::INVALIDRESULT
variable stating which policy is used by default for reporting a runtime error when using a context.
By default, error are reported by returning an invalid result and registring an error message in a context
If MGIS_USE_EXCEPTIONS_FOR_ERROR_REPORTING is defined, registring an error message in a context, mgis::raise is called
If MGIS_USE_ABORT_FOR_ERROR_REPORTING is defined, registring an error message in a context, the error message is printed an the standard error stream and std::abort is called.
- Note
- if
setErrorReportingAsFatal is called, this policy is ignored as any error will lead to display the error message on the standard error stream and call std::abort.