1. added wxAssertIsEqual() function to be used in wxASSERT()

2. made wxTrap() public, documented it


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-06-09 16:35:38 +00:00
parent 749b01f037
commit ed582841a2
3 changed files with 23 additions and 13 deletions

View File

@@ -94,9 +94,7 @@ typedef unsigned char size_t8;
{
// Asserting a sizeof directly causes some compilers to
// issue a "using constant in a conditional expression" warning
size_t intsize = sizeof(int);
wxASSERT_MSG( intsize == 4,
wxASSERT_MSG( wxAssertIsEqual(sizeof(int), 4),
"size_t32 is incorrectly defined!" );
}
} intsizechecker;