Latest articles
3 articles in the current browsing window, ordered by publication date.
This article explains the C preprocessor's macro‑expansion rules, detailing when macro arguments are expanded, how replacement‑list macros behave, special cases involving the # and ## operators, and provides step‑by‑step examples and techniques for controlling expansion.

This guide explains Swift 5.9 macros—both attached and freestanding—detailing how the compiler expands them using SwiftSyntax’s AST manipulation, walks through creating and declaring macros, and demonstrates a PeerMacro that automatically generates async counterparts for completion‑handler functions, reducing boilerplate and improving code clarity.

This article explains the concept of per‑CPU variables in the Linux kernel, how they are defined with DEFINE_PER_CPU, linked into the .data..percpu section, initialized during boot, and accessed at runtime via the GS register and macro expansions such as this_cpu_read_stable.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.