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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user