2018-03-14 20:37:19 +01:00
|
|
|
#ifndef FORMAT_H
|
|
|
|
#define FORMAT_H
|
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define __printf(x, y) __attribute__((__format__(__printf__, x, y)))
|
|
|
|
#else
|
|
|
|
#define __printf(x, y)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <QString>
|
|
|
|
__printf(1, 2) QString qasprintf_loc(const char *cformat, ...);
|
|
|
|
__printf(1, 0) QString vqasprintf_loc(const char *cformat, va_list ap);
|
2024-03-08 08:12:32 +01:00
|
|
|
__printf(1, 2) std::string casprintf_loc(const char *cformat, ...);
|
2024-03-13 09:41:11 +01:00
|
|
|
__printf(1, 2) std::string format_string_std(const char *fmt, ...);
|
2018-03-14 20:37:19 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|