mirror of
https://github.com/samba-team/samba.git
synced 2025-10-29 04:23:51 +03:00
r26088: Import some native-python python modules and move original python swig torture code to common python directory as well.
This commit is contained in:
committed by
Stefan Metzmacher
parent
4b94d5ca74
commit
cbf656ff05
@@ -36,4 +36,15 @@
|
||||
}
|
||||
};
|
||||
|
||||
%typemap(in) NTSTATUS {
|
||||
if (PyLong_Check($input))
|
||||
$1 = NT_STATUS(PyLong_AsUnsignedLong($input));
|
||||
else if (PyInt_Check($input))
|
||||
$1 = NT_STATUS(PyInt_AsLong($input));
|
||||
else {
|
||||
PyErr_SetString(PyExc_TypeError, "Expected a long or an int");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user