summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-05 15:59:17 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-05 15:59:17 +0100
commit3405b046701e9c08972c1e622259164fc88ac487 (patch)
tree5ecc642c6bf67a9875d2850337b31f9715733c54 /src/log.h
parentadb3ae667df8a3d1b4235a98605685af0f0c1805 (diff)
downloadmana-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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/log.h b/src/log.h
index ef1ebb0f..14a80b58 100644
--- a/src/log.h
+++ b/src/log.h
@@ -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: