libwreport  3.12
Data Structures | Namespaces | Variables
options.h File Reference

Configuration variables to control configurable aspects of wreport's behaviour. More...

Go to the source code of this file.

Data Structures

struct  wreport::options::LocalOverride< T >
 Temporarily override a variable while this object is in scope. More...
 

Namespaces

 wreport
 String functions.
 

Variables

thread_local bool wreport::options::var_silent_domain_errors
 Whether domain errors on Var assignments raise exceptions. More...
 

Detailed Description

Configuration variables to control configurable aspects of wreport's behaviour.

Variables are global and thread_local. They are global because they are consulted in performance-critical code like Var::seti, and they are thread_local so that a thread that changes its own configuration does not affect the others.

LocalOverride can be used to perform configuration changes for the duration of a scope. Note that if while the override is active you pass control to an unrelated part of the code which also uses wreport, the behaviour of that code is also changed.

Variable Documentation

◆ var_silent_domain_errors

thread_local bool wreport::options::var_silent_domain_errors

Whether domain errors on Var assignments raise exceptions.

If true, domain errors on variable assignments are silent, and the target variable gets set to undefined. If false (default), error_domain is raised.