From 61766213bb5043276c6fbae89d7842e3f2c65557 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Wed, 8 Jun 2016 00:35:14 +0300 Subject: [PATCH] sxt: SXTerr macro; --- include/sxt/errno.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sxt/errno.h b/include/sxt/errno.h index 904ed53..87051c6 100644 --- a/include/sxt/errno.h +++ b/include/sxt/errno.h @@ -47,4 +47,6 @@ #define SXT_EINVAL (SXT_EBASESHIFT + 22) #define SXT_ENOMEM (SXT_EBASESHIFT + 42) +#define SXTerr(n) (n) < 0 : -(n) ? (n) + #endif /* __SXT_ERRNO_H__ */