fungos / cr

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

Print errors outside of debug mode #41

Open pixelherodev opened 5 years ago

pixelherodev commented 5 years ago

As far as I can tell, zero info is printed if CR_DEBUG isn't defined, not even errors. I personally don't think the define should have to be added to get basic info like "Couldn't load plugin: ./libSIMPLE-Sokol1.so: undefined symbol: get_delta".

If you disagree, feel free to close this issue, this is just a personal opinion.

I am more than willing to make the changes myself and submit a PR, but I'd rather get your input on whether it's a change you'd accept anyways before putting in that work.

fungos commented 5 years ago

CR_ERROR can be a different toggle than CR_DEBUG, I'm ok changing this. But let keep a define to it as not everyone is happy including stdio.h/printf and I do not want any more public API changes (eg. to register a print function)