//-----------------------------------------------------------------------
//    $Id$
//    Version: $Name$
//
//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors
//
//    This file is subject to QPL and may not be  distributed
//    without copyright and license information. Please refer
//    to the file deal.II/doc/license.html for the  text  and
//    further information on this license.
//
//-----------------------------------------------------------------------


// when linking with the object file generated from this file, calling
// aborts() will not abort the program, but simply resume
// operation. while usually useless, this is used in the test to
// generate the output of a triggered assertion without aborting the
// program. we do this, since we sometimes want to test that some code
// actually generates an assertion, which would otherwise be
// impossible

#include <base/logstream.h>

namespace  deal_II_exceptions
{
  namespace internals 
  {
    unsigned int n_treated_exceptions;
  }
}

extern "C"
void abort()
#ifdef DEAL_II_ABORT_NOTHROW_EXCEPTION
  throw ()
#endif
{
  deallog << "Abort!!!" << std::endl;
  deal_II_exceptions::internals::n_treated_exceptions = 0;
}

//-----------------------------------------------------------------------
//    $Id$
//    Version: $Name$
//
//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors
//
//    This file is subject to QPL and may not be  distributed
//    without copyright and license information. Please refer
//    to the file deal.II/doc/license.html for the  text  and
//    further information on this license.
//
//-----------------------------------------------------------------------


// when linking with the object file generated from this file, calling
// aborts() will not abort the program, but simply resume
// operation. while usually useless, this is used in the test to
// generate the output of a triggered assertion without aborting the
// program. we do this, since we sometimes want to test that some code
// actually generates an assertion, which would otherwise be
// impossible

#include <base/logstream.h>

namespace  deal_II_exceptions
{
  namespace internals 
  {
    extern unsigned int n_treated_exceptions;
  }
}

extern "C"
void abort()
#ifdef DEAL_II_ABORT_NOTHROW_EXCEPTION
  throw ()
#endif
{
  deallog << "Abort!!!" << std::endl;
  deal_II_exceptions::internals::n_treated_exceptions = 0;
}

Mark an external variable external.
Mark an external variable external.


git-svn-id: 31d9d2f6432a47c86a3640814024c107794ea77c@8841 0785d39b-7218-0410-832d-ea1e28bc413d
