diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-05 15:59:17 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-05 15:59:17 +0100 |
commit | 3405b046701e9c08972c1e622259164fc88ac487 (patch) | |
tree | 5ecc642c6bf67a9875d2850337b31f9715733c54 /src/log.h | |
parent | adb3ae667df8a3d1b4235a98605685af0f0c1805 (diff) | |
download | mana-3405b046701e9c08972c1e622259164fc88ac487.tar.gz mana-3405b046701e9c08972c1e622259164fc88ac487.tar.bz2 mana-3405b046701e9c08972c1e622259164fc88ac487.tar.xz mana-3405b046701e9c08972c1e622259164fc88ac487.zip |
Use SDL2 to show a simple message box on error
Replacing the various OS-specific ways implemented for macOS, Windows
and Linux (based on xmessage).
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -57,9 +57,10 @@ class Logger ; /** - * Log an error and quit. The error will pop-up on Windows and Mac, and - * will be printed to standard error everywhere else. + * Log an error and quit. The error will be printed to standard error + * and showm in a simple message box. */ + __attribute__((noreturn)) void error(const std::string &error_text); private: |