~/talk

Visualizing Macro Expansion in Visual Studio

Talkat Pure Virtual C++ 2024 · on Tuesday, 2024-04-30· [developer-experience, c-and-cpp]
links:none on file
slides:none on file

A new Visual Studio 2022 version 17.7 feature shows preprocessor output one expansion step at a time, rendering nested macros like Unreal Engine GENERATED_BODY into a navigable list of transformation steps with back and forward arrows and double arrows to jump to first or last expansion. The tool opens an expansion window, highlights each substitution, and exposes where tokens are inserted or removed so debugging macro-bloat or name collisions pinpoints the exact expansion step that caused the problem.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.