From b01a0cc5d6f1557440f421e4cf86fea97a3442e2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 9 Jul 2025 10:51:48 -0400 Subject: prelude: Expose typeof() and typeof_unqual() in C17 mode --- src/prelude.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/prelude.h b/src/prelude.h index f4ec40f..51f1505 100644 --- a/src/prelude.h +++ b/src/prelude.h @@ -80,6 +80,11 @@ /** Part of , but we don't use anything else from it. */ #define thread_local _Thread_local +/** Get the type of an expression. */ +#define typeof __typeof__ +/** Get the unqualified type of an expression. */ +#define typeof_unqual __typeof_unqual__ + #endif // !C23 // Future C standard backports -- cgit v1.2.3