| 16 | namespace facebook::yoga { |
| 17 | |
| 18 | [[noreturn]] void fatalWithMessage(const char* message) { |
| 19 | #if defined(__cpp_exceptions) |
| 20 | throw std::logic_error(message); |
| 21 | #else |
| 22 | static_cast<void>(message); // Unused |
| 23 | std::terminate(); |
| 24 | #endif |
| 25 | } |
| 26 | |
| 27 | void assertFatal(const bool condition, const char* message) { |
| 28 | if (!condition) { |
no test coverage detected