aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-27 12:36:20 +0100
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-11-27 22:40:16 +0100
commit8a92484b0cc1cd2e2f0e026ef1982a56feccd26f (patch)
tree025c3083c4ee8f4c7aa71081835e9b9eb958666d /core/dive.h
parent4e36b2509ce1dc98724282a3e485a20ebacb17e3 (diff)
downloadsubsurface-8a92484b0cc1cd2e2f0e026ef1982a56feccd26f.tar.gz
Add debug function dump_cylinders
This function can be used to dump print all cylinder data. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/dive.h')
-rw-r--r--core/dive.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h
index 399feecb5..2b227690b 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -994,6 +994,9 @@ extern bool weightsystems_equal(weightsystem_t *ws1, weightsystem_t *ws2);
extern void remove_cylinder(struct dive *dive, int idx);
extern void remove_weightsystem(struct dive *dive, int idx);
extern void reset_cylinders(struct dive *dive, bool track_gas);
+#ifdef DEBUG_CYL
+extern void dump_cylinders(struct dive *dive, bool verbose);
+#endif
/*
* String handling.