0ad/source/scriptinterface
Ykkrosh dcf5a2667f CLogger: Use cppformat instead of sys_vswprintf.
sys_vswprintf relies on platform-specific printf implementations, which
vary widely between platforms (in handling of truncation, return values,
use of %s/%S/%hs/%ls for mixing char and wchar_t strings, etc) and are
therefore a pain.

Use cppformat's fmt::sprintf instead, which has very similar syntax to
sprintf but is more C++ish and is portable.

Also, wchar_t is stupid, so use char* strings (which are expected to be
UTF-8) in CLogger. This creates a bit of a pain with changing all
callers to convert to char* strings, but that's their fault for not
using UTF-8 already.

Refs #3011.

This was SVN commit r16182.
2015-01-22 20:30:05 +00:00
..
tests CLogger: Use cppformat instead of sys_vswprintf. 2015-01-22 20:30:05 +00:00
AutoRooters.cpp Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
AutoRooters.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
DebuggingServer.cpp Adds precompiled.h include because Visual Studio checks for that even though the file only contains comments. 2014-01-05 13:58:38 +00:00
DebuggingServer.h I completely missed the header files when disabling the JS debugger. 2014-01-05 10:26:27 +00:00
NativeWrapperDecls.h More exact stack rooting (CallFunction object). 2014-07-31 19:18:40 +00:00
NativeWrapperDefns.h Exact stack rooting for GetClass and GetPrivate. 2014-08-03 17:53:21 +00:00
ScriptConversions.cpp Add engine support to load mods from config and restart into mods. 2014-08-25 16:02:40 +00:00
ScriptExtraHeaders.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
ScriptInterface.cpp Remove useless call. 2014-12-31 00:21:41 +00:00
ScriptInterface.h Split ScriptRuntime and ScriptInterface code to separate files. 2014-11-13 11:19:28 +00:00
ScriptRuntime.cpp Split ScriptRuntime and ScriptInterface code to separate files. 2014-11-13 11:19:28 +00:00
ScriptRuntime.h Fixes build errors on Windows introduced in c813a11427 and 1a0f9b086e. 2014-11-13 22:37:43 +00:00
ScriptStats.cpp Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
ScriptStats.h Add JS memory usage to profiler. 2010-08-02 19:23:58 +00:00
ScriptTypes.h Suppresses noisy clang/libc++ warnings from SpiderMonkey headers on OS X 2014-09-07 23:58:22 +00:00
ScriptVal.cpp Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
ScriptVal.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
ThreadDebugger.cpp Adds precompiled.h include because Visual Studio checks for that even though the file only contains comments. 2014-01-05 13:58:38 +00:00
ThreadDebugger.h I completely missed the header files when disabling the JS debugger. 2014-01-05 10:26:27 +00:00