File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // $Id: rootlogon.C,v 1.37 2004/01/27 18:43:26 perev Exp $
1+ // $Id: rootlogon.C,v 1.38 2004/01/29 17:50:12 perev Exp $
22//
33//=======================================================================
44// owner: Yuri Fisyak
99
1010#pragma optimize 0
1111 // set FloatPointException trap
12- if (strstr (gSystem -> Getenv ("STAR" ),".DEV" )
13- || gSystem -> Getenv ("STARFPE" )) {
12+ namespace rootlogon {
13+ int fpe = 0 ;const char * env = 0 ;
14+ }
15+ rootlogon ::fpe = strstr (gSystem -> Getenv ("STAR" ),".DEV" )!= 0 ;
16+ rootlogon ::env = gSystem -> Getenv ("STARFPE" );
17+ if (rootlogon ::env ) {
18+ if (strcmp (rootlogon ::env ,"YES" )== 0 ) rootlogon ::fpe = 1 ;
19+ if (strcmp (rootlogon ::env ,"NO" )== 0 ) rootlogon ::fpe = 0 ;
20+ }
21+ if (rootlogon ::fpe ) {
1422 gSystem -> SetFPEMask (kInvalid | kDivByZero | kOverflow );
1523 printf ("*** Float Point Exception is ON ***" );
24+ } else {
25+ printf ("*** Float Point Exception is OFF ***" );
1626 }
17-
1827 // Load StarRoot lib.
1928 gSystem -> Load ("StarRoot" );
2029 if (!strstr (gSystem -> GetLibraries (),"libTable" )) gSystem -> Load ("libTable" );
You can’t perform that action at this time.
0 commit comments