out typemap for wxMemorySize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user