diff options
Diffstat (limited to 'src/defs.h')
-rw-r--r-- | src/defs.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -5,6 +5,17 @@ #include <stdint.h> #include <sys/types.h> +#define try_s(a,l) do {\ + if(a) {\ + goto l;\ + }} while (0); + +#define try(a,l,e) do {\ + if(a) {\ + ret = e;\ + goto l;\ + }} while (0); + /* for array implementation */ struct entry { uint64_t val; |