inline int
wxVprintf(const wxString& format, va_list ap)
{
- WX_VARARG_VFOO_IMPL((format, ap), wxCRT_Vprintf, vprintf);
+ WX_VARARG_VFOO_IMPL((wxFormatString(format), ap),
+ wxCRT_Vprintf, vprintf);
}
inline int
wxVfprintf(FILE *f, const wxString& format, va_list ap)
{
- WX_VARARG_VFOO_IMPL((f, format, ap), wxCRT_Vfprintf, vfprintf);
+ WX_VARARG_VFOO_IMPL((f, wxFormatString(format), ap),
+ wxCRT_Vfprintf, vfprintf);
}
#undef WX_VARARG_VFOO_IMPL
#undef wxSnprintf
#define wxPrintf(fmt, ...) \
- wxPrintf_Impl(wxString(fmt), __VA_ARGS__)
+ wxPrintf_Impl(wxFormatString(fmt), __VA_ARGS__)
#define wxFprintf(f, fmt, ...) \
- wxFprintf_Impl(f, wxString(fmt), __VA_ARGS__)
+ wxFprintf_Impl(f, wxFormatString(fmt), __VA_ARGS__)
#define wxSprintf(s, fmt, ...) \
- wxSprintf_Impl(s, wxString(fmt), __VA_ARGS__)
+ wxSprintf_Impl(s, wxFormatString(fmt), __VA_ARGS__)
#define wxSnprintf(s, n, fmt, ...) \
- wxSnprintf_Impl(s, n, wxString(fmt), __VA_ARGS__)
+ wxSnprintf_Impl(s, n, wxFormatString(fmt), __VA_ARGS__)
#endif // __WATCOMC__