OpenTTD Source  20240919-master-gdf0233f4c2
backup_type.hpp File Reference
#include "../debug.h"

Go to the source code of this file.

Data Structures

struct  Backup< T >
 Class to backup a specific variable and restore it later. More...
 
struct  AutoRestoreBackup< T >
 Class to backup a specific variable and restore it upon destruction of this object to prevent stack values going out of scope before resetting the global to its original value. More...
 

Detailed Description

Class for backupping variables and making sure they are restored later.

Definition in file backup_type.hpp.