38 #ifndef PALLAS_INTERNAL_STRINGPRINTF_H_ 39 #define PALLAS_INTERNAL_STRINGPRINTF_H_ 47 #if (defined(__GNUC__) || defined(__clang__)) 55 #define CERES_PRINTF_ATTRIBUTE(string_index, first_to_check) \ 56 __attribute__((__format__ (__printf__, string_index, first_to_check))) 57 #define CERES_SCANF_ATTRIBUTE(string_index, first_to_check) \ 58 __attribute__((__format__ (__scanf__, string_index, first_to_check))) 60 #define CERES_PRINTF_ATTRIBUTE(string_index, first_to_check) 64 extern std::string StringPrintf(
const char* format, ...)
66 CERES_PRINTF_ATTRIBUTE(1, 2);
69 extern const std::
string& SStringPrintf(std::
string* dst, const
char* format, ...)
71 CERES_PRINTF_ATTRIBUTE(2, 3);
74 extern
void StringAppendF(std::
string* dst, const
char* format, ...)
76 CERES_PRINTF_ATTRIBUTE(2, 3);
80 extern
void StringAppendV(std::
string* dst, const
char* format, va_list ap);
82 #undef CERES_PRINTF_ATTRIBUTE 87 #endif // PALLAS_INTERNAL_STRINGPRINTF_H_ Definition: basinhopping.h:51