From 2ec9f76b7221938061d12e268e97bc33e5653a8e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 28 May 2024 02:05:57 -0400 Subject: Rename 'Match' macro to avoid confusion --- utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils.h') diff --git a/utils.h b/utils.h index 628492e..5fcd21c 100644 --- a/utils.h +++ b/utils.h @@ -20,6 +20,8 @@ __expr; \ }) +#define When(x, _tag) ((x)->type == _tag ? &(x)->__tagged._tag : (errx(1, __FILE__ ":%d This was supposed to be a " # _tag "\n", __LINE__), &(x)->__tagged._tag)) + #ifndef public #define public __attribute__ ((visibility ("default"))) #endif -- cgit v1.2.3