C++ Macro Example: Making an ENUM_FOREACH Loop

3,433 views · Published 29 January 2014 · 10:08 · Indexed 30 September 2026

Channel: Christopher Hebert · 2014 · Education

Watch on YouTube

In this basic introduction to C/C++ macros, we create a simple ENUM_FOREACH macro that expands to a for loop.

Check out Reconstructing Cave Story:
=================================================
Playlist:
https://www.youtube.com/playlist?list=PL006xsVEsbKjSKBmLu1clo85yLrwjY67X

Content (.bmp files and such):
https://github.com/chebert/cavestory-content/archive/master.zip

Cave Story (freeware version) download page: http://www.cavestory.org/downloads_game.php

More from this channel