Add FMT_CUSTOM_ASSERT_FAIL - #4505
Conversation
|
I want to use libfmt in a bare metal project, with exceptions disabled and I don't want to pull in any of the printf-familiy, so I need my own implementation. Instead of a weak symbol one could hide the implementation behind an |
Seeing the failing tests, that seems to be needed? |
9fd399a to
5ad7b5f
Compare
|
Thanks for the PR but I don't think we should add yet another configuration macro. You can already control this via |
|
I actually can not really. Because the functions I'd like to be called is not yet in scope, when But declaring it as weak, if and only if FMT_HEADER_ONLY is not defined would also work for me. |
That way one can provide ones own implementation for assert_fail, which is moved out of the detail namespace. For binary compatibility the detail version stays to call the outer version.