|
||||
File indexing completed on 2025-01-18 10:11:21
0001 /***************************************************************************** 0002 * Project: RooFit * 0003 * Package: RooFitCore * 0004 * File: $Id: RooErrorHandler.h,v 1.4 2007/05/11 09:11:30 verkerke Exp $ 0005 * Authors: * 0006 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu * 0007 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu * 0008 * * 0009 * Copyright (c) 2000-2002, Regents of the University of California * 0010 * and Stanford University. All rights reserved. * 0011 * * 0012 * Redistribution and use in source and binary forms, * 0013 * with or without modification, are permitted according to the terms * 0014 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * 0015 *****************************************************************************/ 0016 #ifndef ROO_ERROR_HANDLER 0017 #define ROO_ERROR_HANDLER 0018 0019 #include <csignal> 0020 #include <cstdlib> 0021 #include "RtypesCore.h" 0022 0023 class RooErrorHandler 0024 { 0025 public: 0026 /// Soft assert function that interrupts macro execution but doesn't kill ROOT 0027 static void softAssert(bool condition) { if (!condition) abort() ; } 0028 0029 /// Soft abort function that interrupts macro execution but doesn't kill ROOT 0030 static void softAbort() { raise(11) ; } 0031 } ; 0032 0033 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |