summaryrefslogtreecommitdiffstats
path: root/src/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/defs.h')
-rw-r--r--src/defs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/defs.h b/src/defs.h
index 425e97c..e90f0e5 100644
--- a/src/defs.h
+++ b/src/defs.h
@@ -9,14 +9,15 @@
#include <stdint.h>
#include <sys/types.h>
#include <rin/diagnostic.h>
+#include <rin/definitions.h>
#define try_s(a,l) do {\
- if(a) {\
+ if(unlikely(a)) {\
goto l;\
}} while (0);
#define try(a,l,e,m,...) do {\
- if(a) {\
+ if(unlikely(a)) {\
ret = e;\
rin_err(m __VA_OPT__(,) __VA_ARGS__);\
goto l;\