00001 // vim:set et sts=4 ts=4 tw=75 sw=4 ai ci cin cino=g0,t0: 00002 /* 00003 * Copyright (C) 2007, Technical Computer Science Group, 00004 * University of Bonn 00005 * 00006 * This file is part of the ReChannel library. 00007 * 00008 * The ReChannel library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License as 00010 * published by the Free Software Foundation; either version 2 of the 00011 * License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be 00014 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this library; see the file COPYING. If not, write to the 00020 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 00021 * Boston, MA 02110-1301, USA. 00022 * 00023 * Authors: Andreas Raabe and Armin Felke. Implementation by Armin Felke. 00024 * {raabe, felke}@cs.uni-bonn.de 00025 */ 00037 #include "rc_throwable.h" 00038 00039 namespace ReChannel { 00040 00041 // throws a rc_throwable object 00042 void rc_throw(rc_throwable* t) 00043 { 00044 if (t == NULL) { 00045 RC_REPORT_FATAL(RC_ID_NULL_POINTER_, 00046 "rc_throw() may not throw the null pointer"); 00047 } 00048 t->rc_throw(); 00049 00050 // this line shall never be reached 00051 RC_REPORT_FATAL(RC_ID_INTERNAL_ERROR_, 00052 "rc_throwable instance failed to throw itself"); 00053 } 00054 00055 } // namespace ReChannel 00056 00057 // 00058 // $Id: rc_throwable.cpp,v 1.7 2007/10/14 04:47:29 felke Exp $ 00059 // $Source: /var/cvs/projekte/ReChannel-v2/src/ReChannel/util/rc_throwable.cpp,v $ 00060 //
1.5.3