You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working in a environment where exceptions is disabled (No /EHxx flags in MSVC and _HAS_EXCEPTIONS=0).
When I compile I get the warning:
"C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc"
Is it possible to compile a exceptions free version? Something like: DOCTEST_CONFIG_NO_EXCEPTIONS
I couldn't find any options in the source?
If not, would it be feasible to implement it, and would it be something of interest?
The text was updated successfully, but these errors were encountered:
With difficulty, but I'll see what I can do. It's possible to use with clang/gcc with -fno-exceptions, provided that you use a reporter that does not throw. However, to rid the Trompeloeil code itself of try/catch/throw is not that easy, since it intercepts throwing by the mock RETURN/SIDE_EFFECT/WITH, etc.
Generally I recommend building your unit tests with exceptions enabled, even if your production code is built without it, but I understand that this is not always feasible.
I'm currently working in a environment where exceptions is disabled (No /EHxx flags in MSVC and _HAS_EXCEPTIONS=0).
When I compile I get the warning:
"C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc"
Is it possible to compile a exceptions free version? Something like: DOCTEST_CONFIG_NO_EXCEPTIONS
I couldn't find any options in the source?
If not, would it be feasible to implement it, and would it be something of interest?
The text was updated successfully, but these errors were encountered: