cr icon indicating copy to clipboard operation
cr copied to clipboard

Print errors outside of debug mode

Open pixelherodev opened this issue 6 years ago • 1 comments

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.

pixelherodev avatar Aug 04 '19 14:08 pixelherodev

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)

fungos avatar Aug 12 '19 22:08 fungos