2017-03-24 15:44:14 +00:00
|
|
|
// This file is a modeling file for coverity
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
2017-03-31 09:31:44 +00:00
|
|
|
// Tell coverity that this function exits when value is false
|
2017-03-24 15:44:14 +00:00
|
|
|
void doAssertWithCallstack(bool value)
|
|
|
|
{
|
|
|
|
if (!value) {
|
|
|
|
__coverity_panic__();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-31 14:51:02 +00:00
|
|
|
|
2024-09-09 15:50:01 +00:00
|
|
|
void doAssertStatic(char const * expr, char const * file, long line)
|
|
|
|
{
|
|
|
|
__coverity_panic__();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-03-31 09:31:44 +00:00
|
|
|
// Tell coverity that this function always exits
|
|
|
|
void doAppErr(char const * expr, char const * file, long line)
|
|
|
|
{
|
|
|
|
__coverity_panic__();
|
|
|
|
}
|
|
|
|
|
2017-03-31 14:51:02 +00:00
|
|
|
|
|
|
|
void lyx_exit(int exit_code)
|
|
|
|
{
|
|
|
|
__coverity_panic__();
|
|
|
|
}
|
|
|
|
|
2024-09-09 15:50:01 +00:00
|
|
|
|
|
|
|
void lyxbreaker(void const * data, const char * hint, int size)
|
|
|
|
{
|
|
|
|
__coverity_panic__();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-03-24 15:44:14 +00:00
|
|
|
}
|