MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / check

Function check

src/common/BigInteger.cpp:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41{
42
43 static inline void check(int rc, const char* function)
44 {
45 switch (rc)
46 {
47 case MP_OKAY:
48 return;
49 case MP_MEM:
50 BadAlloc::raise();
51 default:
52 // Libtommath error code @1 in function @2
53 (Arg::Gds(isc_libtommath_generic) << Arg::Num(rc) << function).raise();
54 }
55 }
56
57 BigInteger::BigInteger()
58 {

Callers 6

assignMethod · 0.70
callRemoteServiceManagerFunction · 0.70
parseString2Function · 0.70
parseLongFunction · 0.70
typeBufferFunction · 0.70
lengthMethod · 0.70

Calls 4

raiseFunction · 0.85
GdsClass · 0.85
NumClass · 0.85
raiseMethod · 0.45

Tested by

no test coverage detected