mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r24250: Merge W_ERROR_HAVE_NO_MEMORY macro from Samba 4.
Guenther
This commit is contained in:
parent
c08366f840
commit
054084a235
@ -71,6 +71,12 @@ typedef uint32 WERROR;
|
|||||||
}\
|
}\
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
#define W_ERROR_HAVE_NO_MEMORY(x) do { \
|
||||||
|
if (!(x)) {\
|
||||||
|
return WERR_NOMEM;\
|
||||||
|
}\
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#define W_ERROR_NOT_OK_RETURN(x) do { \
|
#define W_ERROR_NOT_OK_RETURN(x) do { \
|
||||||
if (!W_ERROR_IS_OK(x)) {\
|
if (!W_ERROR_IS_OK(x)) {\
|
||||||
return x;\
|
return x;\
|
||||||
|
Loading…
Reference in New Issue
Block a user