We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7070ea commit f5bb155Copy full SHA for f5bb155
1 file changed
_posts/2025-11-30-comptime-c-functions.md
@@ -4,9 +4,13 @@ title: "Comptime C functions"
4
date: 2025-11-29 12:00:00 +0100
5
---
6
7
+Compile-time function execution is great, but what if you're stuck with C?
8
+
9
+The below programs compile `main()` down to the single `printf()` statement at the very end that prints that the test passed.
10
11
# Generic Stack
12
-[Compiler Explorer](https://godbolt.org/z/PaoT9j1Ed)
13
+Copy of the code on [Compiler Explorer](https://godbolt.org/z/PaoT9j1Ed):
14
15
```c
16
#include <assert.h>
@@ -90,7 +94,7 @@ int main(void) {
90
94
91
95
# Generic Hash Map
92
96
93
-[Compiler Explorer](https://godbolt.org/z/16xhne83s)
97
+Copy of the code on [Compiler Explorer](https://godbolt.org/z/16xhne83s):
98
99
100
0 commit comments