Check wxPrintf etc. arguments types.

Implements checks similar to gcc's compile-time checks: verify that the
arguments are of correct types. This works partially at compile time
(e.g. passing an object as argument fails to compile) and partially at
runtime (assert if the specifier doesn't match the type).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2010-06-24 10:34:18 +00:00
parent 2fe2d3de6b
commit 0f895b0cf5
6 changed files with 652 additions and 34 deletions

View File

@@ -325,6 +325,12 @@ typedef short int WXTYPE;
#endif
#endif
#ifndef HAVE_TR1_TYPE_TRAITS
#if defined(__VISUALC__) && (_MSC_FULL_VER >= 150030729)
#define HAVE_TR1_TYPE_TRAITS
#endif
#endif
/* provide replacement for C99 va_copy() if the compiler doesn't have it */
/* could be already defined by configure or the user */