mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
c4c636fb4f
commit
5305fb152b
2 changed files with 20 additions and 0 deletions
4
dive.h
4
dive.h
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue