]> git.saurik.com Git - wxWidgets.git/commitdiff
use the API Ptr accessor for the inline functions too.
authorRobin Dunn <robin@alldunn.com>
Wed, 9 Jun 2004 17:50:45 +0000 (17:50 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 9 Jun 2004 17:50:45 +0000 (17:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/include/wx/wxPython/wxPython_int.h

index 59788453de52a8a9ada04c86afd180cfc0c3a493..c65b6a9e302008ac89747fba3a5fc66196a278c3 100644 (file)
@@ -439,6 +439,7 @@ struct wxPyCoreAPI {
 // Notice that this is static, not extern.  This is by design, each module
 // needs one, but doesn't have to use it.
 static wxPyCoreAPI* wxPyCoreAPIPtr = NULL;
 // Notice that this is static, not extern.  This is by design, each module
 // needs one, but doesn't have to use it.
 static wxPyCoreAPI* wxPyCoreAPIPtr = NULL;
+inline wxPyCoreAPI* wxPyGetCoreAPIPtr();
 #endif // wxPyUSE_EXPORTED_API
 
 //---------------------------------------------------------------------------
 #endif // wxPyUSE_EXPORTED_API
 
 //---------------------------------------------------------------------------
@@ -453,7 +454,7 @@ public:
 
     ~wxPyUserData() {
 #ifdef wxPyUSE_EXPORTED_API
 
     ~wxPyUserData() {
 #ifdef wxPyUSE_EXPORTED_API
-        wxPyCoreAPIPtr->p_wxPyUserData_dtor(this);
+        wxPyGetCoreAPIPtr()->p_wxPyUserData_dtor(this);
 #else
         wxPyUserData_dtor(this);
 #endif
 #else
         wxPyUserData_dtor(this);
 #endif
@@ -472,7 +473,7 @@ public:
 
     ~wxPyClientData() {
 #ifdef wxPyUSE_EXPORTED_API
 
     ~wxPyClientData() {
 #ifdef wxPyUSE_EXPORTED_API
-        wxPyCoreAPIPtr->p_wxPyClientData_dtor(this);
+        wxPyGetCoreAPIPtr()->p_wxPyClientData_dtor(this);
 #else
         wxPyClientData_dtor(this);
 #endif
 #else
         wxPyClientData_dtor(this);
 #endif
@@ -490,7 +491,7 @@ public:
 
     ~wxPyOORClientData() {
 #ifdef wxPyUSE_EXPORTED_API
 
     ~wxPyOORClientData() {
 #ifdef wxPyUSE_EXPORTED_API
-        wxPyCoreAPIPtr->p_wxPyOORClientData_dtor(this);
+        wxPyGetCoreAPIPtr()->p_wxPyOORClientData_dtor(this);
 #else
         wxPyOORClientData_dtor(this);
 #endif
 #else
         wxPyOORClientData_dtor(this);
 #endif
@@ -519,7 +520,7 @@ public:
 
     ~wxPyCallbackHelper() {
 #ifdef wxPyUSE_EXPORTED_API
 
     ~wxPyCallbackHelper() {
 #ifdef wxPyUSE_EXPORTED_API
-        wxPyCoreAPIPtr->p_wxPyCBH_delete(this);
+        wxPyGetCoreAPIPtr()->p_wxPyCBH_delete(this);
 #else
         wxPyCBH_delete(this);
 #endif
 #else
         wxPyCBH_delete(this);
 #endif