ATLAS Offline Software
FPEAudit_dummy.icc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENASERVICES_FPEAUDIT_DUMMY_ICC
6 #define ATHENASERVICES_FPEAUDIT_DUMMY_ICC 1
7 
8 // C includes
9 #include <signal.h>
10 #include <string.h>
11 #include <stdio.h>
12 #include <stdlib.h> // for abort
13 
14 // C++ includes
15 
16 // fwk includes
17 #include "GaudiKernel/MsgStream.h"
18 
19 extern "C" {
20 namespace FPEAudit {
21 
22 int n_fp_exceptions=0;
23 
24 void
25 fpe_sig_action(int, siginfo_t *, void *)
26 {
27  ::fprintf(stderr, "FPEAudit::fpe_sig_action not available\n");
28  ::abort();
29 }
30 
31 void
32 mask_fpe(void)
33 {
34  // no-op
35 }
36 
37 void
38 unmask_fpe(void)
39 {
40  ::fprintf(stderr, "FPEAudit::unmask_fpe not available\n");
41  ::abort();
42 }
43 
44 void
45 resolve(void *, MsgStream& , bool = false)
46 {
47  ::fprintf(stderr, "FPEAudit::resolve not available\n");
48  ::abort();
49 }
50 
51 } // FPEAudit
52 } // extern "C"
53 
54 #endif /* !ATHENASERVICES_FPEAUDIT_DUMMY_ICC */