Celeritas  0.5.0-56+6b053cd
Macros
LocalTransporter.cc File Reference
#include "LocalTransporter.hh"
#include <csignal>
#include <string>
#include <type_traits>
#include <CLHEP/Units/SystemOfUnits.h>
#include <G4MTRunManager.hh>
#include <G4ParticleDefinition.hh>
#include <G4Threading.hh>
#include <G4ThreeVector.hh>
#include <G4Track.hh>
#include "corecel/Config.hh"
#include "corecel/cont/Span.hh"
#include "corecel/io/Logger.hh"
#include "corecel/sys/Device.hh"
#include "corecel/sys/Environment.hh"
#include "corecel/sys/ScopedSignalHandler.hh"
#include "geocel/GeantUtils.hh"
#include "geocel/g4/Convert.hh"
#include "celeritas/Quantities.hh"
#include "celeritas/ext/GeantUnits.hh"
#include "celeritas/global/ActionSequence.hh"
#include "celeritas/io/EventWriter.hh"
#include "celeritas/io/RootEventWriter.hh"
#include "celeritas/phys/PDGNumber.hh"
#include "celeritas/phys/ParticleParams.hh"
#include "SetupOptions.hh"
#include "SharedParams.hh"
#include "detail/HitManager.hh"
#include "detail/OffloadWriter.hh"

Macros

#define CELER_VALIDATE_OR_KILL_ACTIVE(COND, MSG, STEPPER)
 

Macro Definition Documentation

◆ CELER_VALIDATE_OR_KILL_ACTIVE

#define CELER_VALIDATE_OR_KILL_ACTIVE (   COND,
  MSG,
  STEPPER 
)
Value:
do \
{ \
if (CELER_UNLIKELY(!(COND))) \
{ \
std::ostringstream celer_runtime_msg_; \
celer_runtime_msg_ MSG; \
if (nonfatal_flush()) \
{ \
CELER_LOG_LOCAL(error) << celer_runtime_msg_.str(); \
(STEPPER).kill_active(); \
} \
else \
{ \
CELER_RUNTIME_THROW( \
celer_runtime_msg_.str(), \
#COND); \
} \
} \
} while (0)
#define CELER_UNLIKELY(COND)
Mark the result of this condition to be "unlikely".
Definition: Macros.hh:96
static char const validate_err_str[]
Definition: Assert.hh:495