Fixed TEST_SCOPEGUARD (newer version prepends wx to macros...)

C:\\wxWindows\\samples\\console\\console.cpp(3379) : error C2065: 'ON_BLOCK_EXIT0' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3380) : error C2065: 'ON_BLOCK_EXIT1' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3381) : error C2065: 'ON_BLOCK_EXIT2' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3384) : error C2065: 'ON_BLOCK_EXIT_OBJ0' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3385) : error C2065: 'ON_BLOCK_EXIT_OBJ1' : undeclared identifier
C:\\wxWindows\\samples\\console\\console.cpp(3386) : error C2065: 'ON_BLOCK_EXIT_OBJ2' : undeclared identifier


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2003-12-21 10:02:35 +00:00
parent abc1160026
commit 24c8053b88

View File

@@ -80,7 +80,7 @@
#define TEST_REGCONF
#define TEST_REGEX
#define TEST_REGISTRY
// #define TEST_SCOPEGUARD
#define TEST_SCOPEGUARD
#define TEST_SNGLINST
// #define TEST_SOCKETS
#define TEST_STREAMS
@@ -3376,14 +3376,14 @@ struct Object
static void TestScopeGuard()
{
ON_BLOCK_EXIT0(function0);
ON_BLOCK_EXIT1(function1, 17);
ON_BLOCK_EXIT2(function2, 3.14, 'p');
wxON_BLOCK_EXIT0(function0);
wxON_BLOCK_EXIT1(function1, 17);
wxON_BLOCK_EXIT2(function2, 3.14, 'p');
Object obj;
ON_BLOCK_EXIT_OBJ0(obj, &Object::method0);
ON_BLOCK_EXIT_OBJ1(obj, &Object::method1, 7);
ON_BLOCK_EXIT_OBJ2(obj, &Object::method2, 2.71, 'e');
wxON_BLOCK_EXIT_OBJ0(obj, &Object::method0);
wxON_BLOCK_EXIT_OBJ1(obj, &Object::method1, 7);
wxON_BLOCK_EXIT_OBJ2(obj, &Object::method2, 2.71, 'e');
wxScopeGuard dismissed = wxMakeGuard(function0);
dismissed.Dismiss();