diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-07-09 10:51:48 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-07-26 14:19:52 -0400 |
commit | b01a0cc5d6f1557440f421e4cf86fea97a3442e2 (patch) | |
tree | 26ec507a37868750e432041dd55e302501f62194 | |
parent | 680d5fe9ad91c73100cb0a581ec7a6f1c41b7b07 (diff) | |
download | bfs-b01a0cc5d6f1557440f421e4cf86fea97a3442e2.tar.xz |
prelude: Expose typeof() and typeof_unqual() in C17 mode
-rw-r--r-- | src/prelude.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <threads.h>, 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 |