Support builds without exceptions#789
Conversation
d9dd20e to
bd523a1
Compare
|
It would appear that the windows build is a bit unreliable. I don't see a way to trigger only the failed build. Maybe a maintainer can help. |
|
@oleid I'm wondering if it would be more appropriate to make zenoh::ZResult argument in every function mandatory in case exceptions are not supported, to prevent unexpected abort() calls. |
Sure, that would result in fewer surprises, however, would increase the diff considerably. |
01f4bbd to
97491f5
Compare
|
@DenisBiryukov91 Just checked. Trouble is: in most cases, there are optional arguments in front of the |
97491f5 to
1e16522
Compare
To be able to use zenoh-cpp in an exception free environment such as micro-controllers, the following minimally-invasive change provides a
THROW_ZEXCEPTIONmacro, which compiles down to simply callingabort()if exceptions are disabled.Since exceptions are the standard case, I think it doesn't make sense to change all the doxygen comments. I updated the documentation on error handling, though.