mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s4:libcli/pyerrors: add PyErr_NTSTATUS_NOT_OK_RAISE()
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Aug 6 18:06:50 CEST 2012 on sn-devel-104
This commit is contained in:
parent
a370792cbc
commit
efe28b1247
@ -38,6 +38,12 @@
|
||||
return NULL; \
|
||||
}
|
||||
|
||||
#define PyErr_NTSTATUS_NOT_OK_RAISE(status) \
|
||||
if (!NT_STATUS_IS_OK(status)) { \
|
||||
PyErr_SetNTSTATUS(status); \
|
||||
return NULL; \
|
||||
}
|
||||
|
||||
#define PyErr_WERROR_NOT_OK_RAISE(status) \
|
||||
if (!W_ERROR_IS_OK(status)) { \
|
||||
PyErr_SetWERROR(status); \
|
||||
|
Loading…
Reference in New Issue
Block a user