diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-14 11:24:22 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-07-14 20:44:32 -0400 |
commit | b1afcc69fa70c20d815940fc25189063ed59ae0f (patch) | |
tree | b5876df0592a14729b09de80fc7fabfaf01065b4 /include | |
parent | Merge pull request #2271 from RedSoxFan/implement-1569 (diff) | |
download | sway-b1afcc69fa70c20d815940fc25189063ed59ae0f.tar.gz sway-b1afcc69fa70c20d815940fc25189063ed59ae0f.tar.zst sway-b1afcc69fa70c20d815940fc25189063ed59ae0f.zip |
Add extended debugging flags
We currently have several ways of setting debug flags, including command
line arguments, environment variables, and compile-time macros. This
replaces the lot with command line flags.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/debug.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/debug.h b/include/sway/debug.h index 2430d319..38d4eccd 100644 --- a/include/sway/debug.h +++ b/include/sway/debug.h | |||
@@ -1,7 +1,15 @@ | |||
1 | #ifndef SWAY_DEBUG_H | 1 | #ifndef SWAY_DEBUG_H |
2 | #define SWAY_DEBUG_H | 2 | #define SWAY_DEBUG_H |
3 | 3 | ||
4 | // Tree | ||
4 | extern bool enable_debug_tree; | 5 | extern bool enable_debug_tree; |
5 | void update_debug_tree(); | 6 | void update_debug_tree(); |
6 | 7 | ||
8 | // Damage | ||
9 | extern const char *damage_debug; | ||
10 | |||
11 | // Transactions | ||
12 | extern int txn_timeout_ms; | ||
13 | extern bool txn_debug; | ||
14 | |||
7 | #endif | 15 | #endif |