MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / my_fpe

Function my_fpe

test/signal/test-signalhandler.cpp:58–65  ·  view source on GitHub ↗

static*/

Source from the content-addressed store, hash-verified

56
57#if !defined(__APPLE__) && !defined(_AIX)
58/*static*/ int my_fpe() // NOLINT(misc-use-internal-linkage)
59{
60 if (feenableexcept(FE_ALL_EXCEPT) == -1)
61 return 2;
62 if (std::feraiseexcept(FE_ALL_EXCEPT) != 0)
63 return 3;
64 return 1 % -1;
65}
66#endif
67#endif
68

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected