- Added more string constant encapsulation macros

- Added more format string functions (including log functions)
- Added assert macros
- Added type limits and definitions
This commit is contained in:
Rick van der Sluijs 2017-07-14 22:18:02 +02:00
parent 366f219e73
commit 2c3e274f0a
1 changed files with 174 additions and 5 deletions

View File

@ -1,17 +1,45 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<def format="2"> <def format="2">
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__string.html#ga437ea6ba615b75dac8603e96ec864160 --> <!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__string.html#ga437ea6ba615b75dac8603e96ec864160 -->
<!-- #define wxT (string) --> <!-- #define wxT(string) -->
<define name="wxT" value=""/> <define name="wxT" value=""/>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__string.html#ga0a06701ea0e6bb00c5171ace1b1f5691 -->
<!-- #define wxS(string) -->
<define name="wxS" value=""/>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__string.html#ga7dfc2888539861afe6c4337ef315472b -->
<!-- #define _T(string) -->
<define name="_T" value=""/>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__string.html#gab8862de0f74049708bfea75ae9e14c45 -->
<!-- #define wxTRANSLATE(string) -->
<define name="wxTRANSLATE" value=""/>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__string.html#ga8a02b8875a521df57263a9e6f090f2d0 -->
<!-- #define _(string) -->
<define name="_" value=""/>
<!-- http://docs.wxwidgets.org/trunk/classwx_string.html#addd9ccfa3ae2b7ab2d66bcbf034d0be0 --> <!-- http://docs.wxwidgets.org/trunk/classwx_string.html#addd9ccfa3ae2b7ab2d66bcbf034d0be0 -->
<!-- static wxString wxString::Format(const wxString & format, ...) --> <!-- static wxString wxString::Format(const wxString & format, ...) -->
<function name="wxString::Format"> <function name="wxString::Format">
<const/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<formatstr/> <formatstr/>
<arg nr="1"> <arg nr="1">
<formatstr/> <formatstr/>
<not-null/>
<not-uninit/> <not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://docs.wxwidgets.org/trunk/classwx_string.html#a9588b7f2684b9a6a924dc3746a2b2f8d -->
<!-- int wxString::Printf(const wxString & format, ...) -->
<function name="wxString::Printf">
<noreturn>false</noreturn>
<leak-ignore/>
<formatstr/>
<arg nr="1">
<formatstr/>
<not-null/>
<not-uninit/>
<not-bool/>
</arg> </arg>
</function> </function>
<!-- http://docs.wxwidgets.org/trunk/classwx_string.html#ace32756bab999f8aae9be0cf981fc449 --> <!-- http://docs.wxwidgets.org/trunk/classwx_string.html#ace32756bab999f8aae9be0cf981fc449 -->
@ -22,7 +50,7 @@
<returnValue type="bool"/> <returnValue type="bool"/>
<use-retval/> <use-retval/>
</function> </function>
<!-- http://docs.wxwidgets.org/trunk/classwx_string.html#ace32756bab999f8aae9be0cf981fc449 --> <!-- http://docs.wxwidgets.org/trunk/classwx_string.html#ae0a2020695a6ecd9ee49c14fe7429176 -->
<!-- bool wxString::IsNull() --> <!-- bool wxString::IsNull() -->
<function name="wxString::IsNull"> <function name="wxString::IsNull">
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -30,7 +58,7 @@
<returnValue type="bool"/> <returnValue type="bool"/>
<use-retval/> <use-retval/>
</function> </function>
<!-- http://docs.wxwidgets.org/trunk/classwx_string.html#ace32756bab999f8aae9be0cf981fc449 --> <!-- http://docs.wxwidgets.org/trunk/classwx_string.html#a42fc468fb16b820b1b599fadfc6285cb -->
<!-- bool wxString::IsNumber() --> <!-- bool wxString::IsNumber() -->
<function name="wxString::IsNumber"> <function name="wxString::IsNumber">
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -38,7 +66,7 @@
<returnValue type="bool"/> <returnValue type="bool"/>
<use-retval/> <use-retval/>
</function> </function>
<!-- http://docs.wxwidgets.org/trunk/classwx_string.html#ace32756bab999f8aae9be0cf981fc449 --> <!-- http://docs.wxwidgets.org/trunk/classwx_string.html#a932ddb6b4786213596c3e41b1fa1f7c5 -->
<!-- bool wxString::IsAscii() --> <!-- bool wxString::IsAscii() -->
<function name="wxString::IsAscii"> <function name="wxString::IsAscii">
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -46,7 +74,7 @@
<returnValue type="bool"/> <returnValue type="bool"/>
<use-retval/> <use-retval/>
</function> </function>
<!-- http://docs.wxwidgets.org/trunk/classwx_string.html#ace32756bab999f8aae9be0cf981fc449 --> <!-- http://docs.wxwidgets.org/trunk/classwx_string.html#a1b27a667e2c97b561e8dbb917e491cf0 -->
<!-- bool wxString::IsWord() --> <!-- bool wxString::IsWord() -->
<function name="wxString::IsWord"> <function name="wxString::IsWord">
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -54,6 +82,110 @@
<returnValue type="bool"/> <returnValue type="bool"/>
<use-retval/> <use-retval/>
</function> </function>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__log.html#ga249358701f3c2d410088ddf7a61d8564 -->
<!-- void wxLogMessage(const wxString & format, ...) -->
<function name="wxLogMessage">
<noreturn>false</noreturn>
<leak-ignore/>
<formatstr/>
<arg nr="1">
<formatstr/>
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__log.html#gaf57b7e28ab76bacf10b3be044e8bd634 -->
<!-- void wxLogVerbose(const wxString & format, ...) -->
<function name="wxLogVerbose">
<noreturn>false</noreturn>
<leak-ignore/>
<formatstr/>
<arg nr="1">
<formatstr/>
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__log.html#ga0c2b19580ef6721508e6d69534b10e90 -->
<!-- void wxLogWarning(const wxString & format, ...) -->
<function name="wxLogWarning">
<noreturn>false</noreturn>
<leak-ignore/>
<formatstr/>
<arg nr="1">
<formatstr/>
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__log.html#ga4ae39c06cbeaa5461cd1b5c293a31403 -->
<!-- void wxLogFatalError(const wxString & format, ...) -->
<function name="wxLogFatalError">
<noreturn>false</noreturn>
<leak-ignore/>
<formatstr/>
<arg nr="1">
<formatstr/>
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__log.html#ga0dd3c633f990f794e76065c9a7af4c87 -->
<!-- void wxLogError(const wxString & format, ...) -->
<function name="wxLogError">
<noreturn>false</noreturn>
<leak-ignore/>
<formatstr/>
<arg nr="1">
<formatstr/>
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__log.html#ga9c530ae20eb423744f90874d2c97d02b -->
<!-- void wxLogDebug(const wxString & format, ...) -->
<function name="wxLogDebug">
<noreturn>false</noreturn>
<leak-ignore/>
<formatstr/>
<arg nr="1">
<formatstr/>
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__log.html#ga28f01715af5aaf37caffdc5bc00fde3f -->
<!-- void wxLogSysError(const wxString & format, ...) -->
<function name="wxLogSysError">
<noreturn>false</noreturn>
<leak-ignore/>
<formatstr/>
<arg nr="1">
<formatstr/>
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__log.html#gac47036f8bd8f711bf4646418c71828a5 -->
<!-- void wxLogGeneric(wxLogLevel level, const wxString & format, ...) -->
<function name="wxLogGeneric">
<noreturn>false</noreturn>
<leak-ignore/>
<formatstr/>
<arg nr="2">
<formatstr/>
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- Override macros which don't necessarily require semicolons at the end --> <!-- Override macros which don't necessarily require semicolons at the end -->
<define name="DECLARE_CLASS(n)" value=""/> <define name="DECLARE_CLASS(n)" value=""/>
<define name="DECLARE_DYNAMIC_CLASS(n)" value=""/> <define name="DECLARE_DYNAMIC_CLASS(n)" value=""/>
@ -75,4 +207,41 @@
<define name="END_EVENT_TABLE()" value=";"/> <define name="END_EVENT_TABLE()" value=";"/>
<define name="wxBEGIN_EVENT_TABLE(a,b)" value=";"/> <define name="wxBEGIN_EVENT_TABLE(a,b)" value=";"/>
<define name="wxEND_EVENT_TABLE()" value=";"/> <define name="wxEND_EVENT_TABLE()" value=";"/>
<!-- http://docs.wxwidgets.org/trunk/group__group__funcmacro__debug.html -->
<!-- #define wxASSERT(condition) -->
<define name="wxASSERT" value="assert"/>
<!-- #define wxASSERT_MSG(condition, message) -->
<define name="wxASSERT_MSG" value="assert"/>
<!-- #define wxASSERT_LEVEL_2(condition) -->
<define name="wxASSERT_LEVEL_2" value="assert"/>
<!-- #define wxASSERT_LEVEL_2_MSG(condition, message) -->
<define name="wxASSERT_LEVEL_2_MSG" value="assert"/>
<!-- http://docs.wxwidgets.org/trunk/defs_8h.html -->
<define name="wxUINT8_MAX" value="0xffU"/>
<define name="wxINT8_MAX" value="0x7f"/>
<define name="wxINT8_MIN" value="0x80"/>
<define name="wxUINT16_MAX" value="0xffffU"/>
<define name="wxINT16_MAX" value="0x7fff"/>
<define name="wxINT16_MIN" value="0x8000"/>
<define name="wxUINT32_MAX" value="0xffffffffUL"/>
<define name="wxINT32_MAX" value="0x7fffffffL"/>
<define name="wxINT32_MIN" value="0x80000000L"/>
<define name="wxUINT64_MAX" value="0xffffffffffffffffULL"/>
<define name="wxINT64_MAX" value="0x7fffffffffffffffLL"/>
<define name="wxINT64_MIN" value="0x8000000000000000LL"/>
<podtype name="wxInt8" sign="s" size="1"/>
<podtype name="wxUint8" sign="u" size="1"/>
<podtype name="wxByte" sign="u" size="1"/>
<podtype name="wxInt16" sign="s" size="2"/>
<podtype name="wxUint16" sign="u" size="2"/>
<podtype name="wxWord" sign="u" size="2"/>
<podtype name="wxChar16" sign="u" size="2"/>
<podtype name="wxInt32" sign="s" size="4"/>
<podtype name="wxUint32" sign="u" size="4"/>
<podtype name="wxDword" sign="u" size="4"/>
<podtype name="wxChar32" sign="u" size="4"/>
<podtype name="wxInt64" sign="s" size="8"/>
<podtype name="wxUint64" sign="u" size="8"/>
<podtype name="wxIntPtr" sign="s"/>
<podtype name="wxUIntPtr" sign="u"/>
</def> </def>