summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/uncancel.h
blob: b5501e1a1d7501980e2c5b99c8bd4c48c30bc874 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * @file
 * @brief User interactions that need to be restarted if the game is forcibly
 *        saved (via SIGHUP/window close).
**/

#ifndef UNCANCEL_H
#define UNCANCEL_H

void add_uncancel(uncancellable_type kind, int arg = 0);
void run_uncancels();

static inline void run_uncancel(uncancellable_type kind, int arg = 0)
{
    add_uncancel(kind, arg);
    run_uncancels();
}

#endif