2 ms·
Catching it at runtime somewhat defeats the benefit of your approach upthread: > Another possibility is to avoid it in the first place by not allowing C++ func
by loeg 2y ago
Catching it at runtime somewhat defeats the benefit of your approach upthread:
> Another possibility is to avoid it in the first place by not allowing C++ function pointers that are not marked noexcept to be passed to C functions.
- ryao 2y agoThe two would combine to avoid situations where people spend 5 days debugging like unity did. That said, my personal preference is to use C instead of C++, which avoids the issues of exceptions breaking kernel expectations entirely.