File: coverity_modeling.cpp

package info (click to toggle)
lyx 2.5.0~RC2-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 138,144 kB
  • sloc: cpp: 244,226; ansic: 106,398; xml: 72,791; python: 39,384; sh: 7,666; makefile: 6,584; pascal: 2,143; perl: 2,101; objc: 1,084; tcl: 163; sed: 16
file content (39 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// This file is a modeling file for coverity

namespace lyx {

// Tell coverity that this function exits when value is false
void doAssertWithCallstack(bool value)
{
	if (!value) {
		 __coverity_panic__();
	}
}


void doAssertStatic(char const * expr, char const * file, long line)
{
	__coverity_panic__();
}


// Tell coverity that this function always exits
void doAppErr(char const * expr, char const * file, long line)
{
	__coverity_panic__();
}


void lyx_exit(int exit_code)
{
	__coverity_panic__();
}


void lyxbreaker(void const * data, const char * hint, int size)
{
	__coverity_panic__();
}


}