I have something like
DBG_PRINTF( (T(“My format string %S”), myString.toUTF8()) );
That works fine on PC, but gets stuck in an infinite loop in String::vprintf (const tchar* const pf, va_list& args), as the buffer never seems to be big enough.
Now if you try to do this with %s instead of %S, it works on Mac but writes out crazy things on PC.
Any idea how to make it work on both platforms?