jheruty / hscpp

Runtime compiled C++ with hot-swapped classes.
MIT License
91 stars 5 forks source link

Add hscpp_return statement, to immediately stop Preprocessor. #10

Closed jheruty closed 3 years ago

jheruty commented 3 years ago

hscpp_return can be a useful shortcut to avoid wrapping huge blocks in if statements. It also provides a convenient way to completely disable a file, by placing an unconditional hscpp_return() at the top of the file. This is especially useful if DependentCompilation adds files to the compilation list that should be ignored (ex. main.cpp).