CBMC
Loading...
Searching...
No Matches
config_restore.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module: RAII guard for the global configuration object
4
5
Author: Michael Tautschnig
6
7
\*******************************************************************/
8
9
#ifndef CPROVER_TESTING_UTILS_CONFIG_RESTORE_H
10
#define CPROVER_TESTING_UTILS_CONFIG_RESTORE_H
11
12
#include <
util/config.h
>
13
16
struct
config_restoret
17
{
18
configt
config_backup
=
config
;
19
20
~config_restoret
()
21
{
22
config
=
config_backup
;
23
}
24
};
25
26
#endif
// CPROVER_TESTING_UTILS_CONFIG_RESTORE_H
config
configt config
Definition
config.cpp:25
configt
Globally accessible architectural configuration.
Definition
config.h:144
config.h
config_restoret
Restores the global configuration object on destruction, so that the original configuration is re-est...
Definition
config_restore.h:17
config_restoret::~config_restoret
~config_restoret()
Definition
config_restore.h:20
config_restoret::config_backup
configt config_backup
Definition
config_restore.h:18
unit
testing-utils
config_restore.h
Generated by
1.9.8