Files
geant4/source/geometry/benchmarks/f77cppcomparison/globals.hh
T
2016-06-08 15:42:07 +02:00

50 lines
1.0 KiB
C++

// This code implementation is the intellectual property of
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: globals.hh,v 1.3 1999/12/15 14:49:46 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
//
// Global Constants and typedefs
//
// History:
// 30.06.95 P.Kent
#ifndef GLOBALS_HH
#define GLOBALS_HH
// Typedefs for numeric types
// [NOTE: Will in future need to be made more sophisticated]
typedef double G4double;
typedef float G4float;
typedef long G4long;
typedef int G4int;
// Typedefs to decouple from library classes
//#include <rw/cstring.h>
//typedef G4String G4String;
// Boolean - define G4_HAVE_BOOL if bool type available
#ifdef G4_HAVE_BOOL
typedef bool G4bool;
#else
typedef int G4bool;
const int false = 0;
const int true = 1;
//enum G4bool {false = 0, true = 1};
#endif
// Global error function
//void G4Exception(const char* s=0);
#endif