Change the C name of my wxGetApp so it doesn't conflict if wxPython is

linked statically with a C++ wxWidgets app.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-05-14 21:27:23 +00:00
parent c8fac2b60d
commit c92d92835d
4 changed files with 9 additions and 7 deletions

View File

@@ -334,15 +334,16 @@ Python shuts down.", "");
%}
DocStr(wxGetApp,
"Return a reference to the current wx.App object.", "");
%inline %{
wxPyApp* wxGetApp() {
return (wxPyApp*)wxTheApp;
}
DocDeclStrName(
wxPyApp* , wxPyGetApp(),
"Return a reference to the current wx.App object.", "",
GetApp);
%{
wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
%}
//---------------------------------------------------------------------------
// Include some extra wxApp related python code here