| 20 | namespace os { |
| 21 | |
| 22 | void error_message(const char* msg) |
| 23 | { |
| 24 | #if LAF_WINDOWS |
| 25 | if (msg) |
| 26 | MessageBoxW(nullptr, base::from_utf8(msg).c_str(), L"Error", MB_OK | MB_ICONERROR); |
| 27 | #endif |
| 28 | |
| 29 | fputs(msg, stderr); |
| 30 | } |
| 31 | |
| 32 | } // namespace os |
nothing calls this directly
no test coverage detected