There are uses of preprocessor macros in C:DDA code base, (action.cpp, Line no: 557 is one such instance) which can be easily replaced with templates. I was wondering if there was some rationale behind its usage.
Its only recently I was introduced to this awesome game
and came up with this while searching for how the map generation is implemented, so I don’t know if this is the right place to ask this.