2018-05-22 06:14:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#ifndef SSRF_H
|
|
|
|
#define SSRF_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-05-22 06:29:42 +00:00
|
|
|
#ifdef __clang__
|
|
|
|
// Clang has a bug on zero-initialization of C structs.
|
|
|
|
#pragma clang diagnostic ignored "-Wmissing-field-initializers"
|
|
|
|
#endif
|
2018-05-22 06:14:06 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2018-05-28 14:25:39 +00:00
|
|
|
|
|
|
|
#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
|
|
|
|
|
2018-05-22 06:14:06 +00:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
|
|
|
|
// Macro to be used for silencing unused parameters
|
|
|
|
#define UNUSED(x) (void)x
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // SSRF_H
|