Skip to content

Commit bdc733d

Browse files
authored
Enhance clarity in introduction of C functions post
Refine introduction to clarify constraints and goals of using C for compile-time function execution.
1 parent 4168a3d commit bdc733d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

_posts/2025-11-30-comptime-c-functions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ title: "Comptime C functions"
44
date: 2025-11-29 12:00:00 +0100
55
---
66

7-
Compile-time function execution is great, but what if you're stuck with C, and don't want to use evil C macros?
7+
Compile-time function execution is great, but what if you're:
8+
1. Stuck with C.
9+
2. Don't want to use evil C macros.
10+
3. Want generic data structures that work for all types.
811

9-
The below programs compile `main()` down to the single `printf()` statement at the very end that prints that the test passed.
12+
The below programs with GCC and Clang optimizations compile `main()` down to the `printf()` statement that prints that the test passed.
1013

1114
# Generic Stack
1215

0 commit comments

Comments
 (0)