| 11 | }; |
| 12 | |
| 13 | inline void throw_cs_error(cs_err e [[maybe_unused]]) |
| 14 | { |
| 15 | #ifdef __cpp_exceptions |
| 16 | #if defined(_MSC_VER) && (!defined(_HAS_EXCEPTIONS) || _HAS_EXCEPTIONS == 0) |
| 17 | fast_terminate(); |
| 18 | #else |
| 19 | throw cs_error{e}; |
| 20 | #endif |
| 21 | #else |
| 22 | fast_terminate(); |
| 23 | #endif |
| 24 | } |
| 25 | |
| 26 | namespace details |
| 27 | { |
no test coverage detected