From dc77dc04689254730de428e75a1da6f7a893c9e6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 29 Jun 2021 15:45:50 -0400 Subject: Factor out TRY macro --- src/n3.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/n3.c') diff --git a/src/n3.c b/src/n3.c index ab0cfb37..cd8119ae 100644 --- a/src/n3.c +++ b/src/n3.c @@ -20,6 +20,7 @@ #include "serd_internal.h" #include "stack.h" #include "string_utils.h" +#include "try.h" #include "uri_utils.h" #include "serd/serd.h" @@ -41,13 +42,6 @@ _Pragma("clang diagnostic ignored \"-Wmissing-declarations\"") # define SERD_FALLTHROUGH #endif -#define TRY(st, exp) \ - do { \ - if (((st) = (exp))) { \ - return (st); \ - } \ - } while (0) - static bool fancy_syntax(const SerdReader* const reader) { -- cgit v1.2.1