fungos / cr

cr.h: A Simple C Hot Reload Header-only Library
https://fungos.github.io/cr-simple-c-hot-reload/
MIT License
1.55k stars 104 forks source link

overridable macros #20

Closed septag closed 5 years ago

septag commented 5 years ago

this PR is for the 1 and 2 I suggested here

I also relocated the macros to the CR_HOST section. in order to have a less cluttered header entry and also move the included headers to the host implementation only.

I also changed the CR_LOG/CR_TRACE override pattern, to let the user define his own debug logger function.

Every macro has a default behavior like before, Hopefully it doesn't break anything