Bruce Lee's Notes

Systems, programming, and engineering practice

Variadic Macros, Token Pasting, and Callback-Style Macro Expansion

C/C++

About Me Welcome to my blog! This is where I collect my observations and notes on programming and technology. The main subjects range from implementation details to broader ideas about programming.......

Commenting Multiline Macros: A Mistake That Cost an Afternoon and an Evening

C/C++

About Me Welcome to my blog! This is where I collect my observations and notes on programming and technology. The main subjects range from implementation details to broader ideas about programming.......

How the YEMU Emulator Works

Engineering

About Me Welcome to my blog! This is where I collect my observations and notes on programming and technology. The main subjects range from implementation details to broader ideas about programming.......

Notes on Operand Decoding and Implementing RISC-V Instructions

Engineering

About Me Welcome to my blog! This is where I collect my observations and notes on programming and technology. The main subjects range from implementation details to broader ideas about programming.......

C Preprocessor Token-Pasting Operator

C/C++ preprocessing

Token Pasting in the C Preprocessor The token-pasting operator ## is handled by the C preprocessor. It is not an operator in ordinary C expressions. In practice, that means it can be used inside a ......