An Alternative Conditional Compilation Approach with Modern C++

Sample configs from FreeRTOSConfig.h
Figure 1: file dependency
FreeRTOS/timer.c
module.h
module.c
module_config.h
main.cpp (pseudo test code)
We do not even need to compile the code

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store