Simple, only supports ifdef/endif/else with define/undef and simple syntax for doing boolean expressions.
My apologies to the author of the MPP package (also available). I needed something quick & dirty. Seems to work. Comes with test file.
Misha Koshelev (2022). C-style MATLAB preprocessor (https://www.mathworks.com/matlabcentral/fileexchange/26713-c-style-matlab-preprocessor), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!