summaryrefslogtreecommitdiffstats
path: root/core/ssrf.h
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@libreoffice.org>2018-05-22 08:14:06 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-05-24 08:34:14 -0700
commita243977026703e536db2f33099cb34d10aa8a783 (patch)
treeeadb6910f82ace114bc5394a548dc87197ef9b37 /core/ssrf.h
parentce800310a4a1ff62b8b5e5eff8ae6ec69c3d2216 (diff)
downloadsubsurface-a243977026703e536db2f33099cb34d10aa8a783.tar.gz
core: add ssrf.h as global product header
ssrf contains macros/includes etc. used in ssrf, but not related to dives (mainly in dive.h) currently the header is created to add the macro UNUSED later it will be used to remove non-dive related items from dive.h Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/ssrf.h')
-rw-r--r--core/ssrf.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/ssrf.h b/core/ssrf.h
new file mode 100644
index 000000000..a07436d80
--- /dev/null
+++ b/core/ssrf.h
@@ -0,0 +1,18 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef SSRF_H
+#define SSRF_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#ifdef __cplusplus
+}
+#else
+
+// Macro to be used for silencing unused parameters
+#define UNUSED(x) (void)x
+#endif
+
+#endif // SSRF_H