2018-03-14 19:37:19 +00: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 07:12:32 +00:00
|
|
|
__printf(1, 2) std::string casprintf_loc(const char *cformat, ...);
|
2024-03-13 08:41:11 +00:00
|
|
|
__printf(1, 2) std::string format_string_std(const char *fmt, ...);
|
2018-03-14 19:37:19 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|