MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / showError

Function showError

src/Engine/CrossPlatform.cpp:78–86  ·  view source on GitHub ↗

* Displays a message box with an error message. * @param error Error message. */

Source from the content-addressed store, hash-verified

76 * @param error Error message.
77 */
78void showError(const std::string &error)
79{
80#ifdef _WIN32
81 MessageBoxA(NULL, error.c_str(), "OpenXcom Error", MB_ICONERROR | MB_OK);
82#else
83 std::cerr << error << std::endl;
84#endif
85 Log(LOG_FATAL) << error;
86}
87
88#ifndef _WIN32
89/**

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected