From: Robin Dunn Date: Thu, 20 Jul 2006 20:55:59 +0000 (+0000) Subject: out typemap for wxMemorySize X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/941afb6b650abdad082742dccbe8e463848ba964 out typemap for wxMemorySize git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_functions.i b/wxPython/src/_functions.i index 162f51e777..44f8c045d7 100644 --- a/wxPython/src/_functions.i +++ b/wxPython/src/_functions.i @@ -114,6 +114,15 @@ wxString wxGetOsDescription(); // // "All files (*)|*|Image Files (*.jpeg *.png)|*.jpg;*.png" // int wxParseCommonDialogsFilter(const wxString& wildCard, wxArrayString& descriptions, wxArrayString& filters); + +%typemap(out) wxMemorySize { + %#if wxUSE_LONGLONG + $result = PyLong_FromLongLong($1.GetValue()); + %#else + $result = PyInt_FromLong($1); + %#endif +} + #if defined(__WXMSW__) || defined(__WXMAC__) wxMemorySize wxGetFreeMemory(); #else