From 941afb6b650abdad082742dccbe8e463848ba964 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 20 Jul 2006 20:55:59 +0000 Subject: [PATCH] out typemap for wxMemorySize git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_functions.i | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.50.0