jheruty / hscpp

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

Make HSCPP_TRACK automatically generate an hscpp_module, so that layo… #8

Closed jheruty closed 3 years ago

jheruty commented 3 years ago

This change is applicable when DependentCompilation is enabled.

HSCPP_TRACK is required for any runtime class declaration. This makes it so that any file containing an HSCPP_TRACK will implicitly become an hscpp_module. In most cases, this will be in a header file.

The result is that changing the header will force recompilation of all classes that depend on that header. This will allow for safe layout changes to runtime classes.

Changing the cpp file will not require a recompilation of all dependents, as only the header file will be part of this new module.