aboutsummaryrefslogtreecommitdiffstats
path: root/core/ssrf.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/ssrf.h')
-rw-r--r--core/ssrf.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/ssrf.h b/core/ssrf.h
index 7f65f2dc5..20dc569a4 100644
--- a/core/ssrf.h
+++ b/core/ssrf.h
@@ -12,6 +12,21 @@ extern "C" {
#endif
#ifdef __cplusplus
+
+#ifdef SUBSURFACE_MOBILE
+#ifdef ENABLE_STARTUP_TIMING
+// Declare generic function, will be seen only in CPP code
+// Use void parameters to avoid extra includes
+extern void log_stp(const char *ident, QString *buf);
+
+#define LOG_STP(x) log_stp(x, NULL)
+#define LOG_STP_CLIPBOARD(x) log_stp(NULL, x)
+#else
+#define LOG_STP(x)
+#define LOG_STP_CLIPBOARD(x)
+#endif // ENABLE_STARTUP_TIMING
+#endif // SUBSURFACE_MOBILE
+
}
#else