Only try to run xmessage on Linux
This commit is contained in:
parent
2e43a4d696
commit
faf55c6540
|
@ -43,16 +43,12 @@ void on_assert_failed(const char* message)
|
||||||
case IDOK:
|
case IDOK:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#else
|
#elif defined(__linux__)
|
||||||
auto cmd = "xmessage -buttons 'quit:0,ignore:1' '" + msg + "'";
|
auto cmd = "xmessage -buttons 'quit:0,ignore:1' '" + msg + "'";
|
||||||
switch (system(cmd.c_str()))
|
if (system(cmd.c_str()) != 1)
|
||||||
{
|
throw assert_failed(msg);
|
||||||
case -1:
|
#else
|
||||||
case 0:
|
throw assert_failed(msg);
|
||||||
throw assert_failed(message);
|
|
||||||
case 1:
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user