mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
7452aa22c2
No fixed buffers. Sadly, the thing is still a global variable. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
17 lines
532 B
C++
17 lines
532 B
C++
#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);
|
|
__printf(1, 2) std::string casprintf_loc(const char *cformat, ...);
|
|
__printf(1, 0) std::string vformat_string_std(const char *fmt, va_list ap);
|
|
__printf(1, 2) std::string format_string_std(const char *fmt, ...);
|
|
|
|
#endif
|