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
|
|
|
|
|
|
|
|
#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-06-08 20:43:04 +00:00
|
|
|
__printf(1, 0) std::string vformat_string_std(const char *fmt, va_list ap);
|
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
|