diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-26 08:30:37 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-26 08:34:39 -0700 |
commit | 5305fb152b5cb31e81ac3f1ca2f2782d20b8bb83 (patch) | |
tree | 585f602f43c4a56880f469615b5a080b470fb273 /dive.h | |
parent | c4c636fb4ffa942f282d57556a579de311b96c43 (diff) | |
download | subsurface-5305fb152b5cb31e81ac3f1ca2f2782d20b8bb83.tar.gz |
Add the ability to create a log file for debugging output
Especially when asking non-developers for help debugging a problem it can
be extremely useful to have debugging output not go to the console but to
a log file instead.
This just adds the infrastructure to create (and close) such a file. No
changes to the debug output are made.
All this is of course #ifdef'ed out.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -439,4 +439,8 @@ extern const char *subsurface_default_filename(void); #define FRACTION(n,x) ((unsigned)(n)/(x)),((unsigned)(n)%(x)) +#ifdef DEBUGFILE +extern char *debugfilename; +extern FILE *debugfile; +#endif #endif /* DIVE_H */ |