assert: throw if launching xmessage fails
This commit is contained in:
parent
abf514f305
commit
28c8acf80a
|
@ -20,6 +20,7 @@ void on_assert_failed(const char* message)
|
||||||
int res = system(("xmessage -buttons 'quit:0,ignore:1' '"_str + message + "'").c_str());
|
int res = system(("xmessage -buttons 'quit:0,ignore:1' '"_str + message + "'").c_str());
|
||||||
switch (res)
|
switch (res)
|
||||||
{
|
{
|
||||||
|
case -1:
|
||||||
case 0:
|
case 0:
|
||||||
throw assert_failed(message);
|
throw assert_failed(message);
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user