00001 /* B O M B . C 00002 * BRL-CAD 00003 * 00004 * Copyright (c) 1998-2006 United States Government as represented by 00005 * the U.S. Army Research Laboratory. 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License 00009 * as published by the Free Software Foundation; either version 2 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this file; see the file named COPYING for more 00019 * information. 00020 */ 00021 00022 /** @addtogroup librt */ 00023 /*@{*/ 00024 /** @file ./librt/bomb.c 00025 * Checks LIBRT-specific error flags, then 00026 * hands the error off to LIBBU. 00027 * 00028 * Author - 00029 * Michael John Muuss 00030 * 00031 * Source - 00032 * The U. S. Army Research Laboratory 00033 * Aberdeen Proving Ground, Maryland 21005-5068 USA 00034 */ 00035 /*@}*/ 00036 00037 #ifndef lint 00038 static const char RCSid[] = "@(#)$Header: /cvsroot/brlcad/brlcad/src/librt/bomb.c,v 14.12 2006/09/16 02:04:24 lbutler Exp $ (ARL)"; 00039 #endif 00040 00041 #include "common.h" 00042 00043 #include <stdio.h> 00044 #include <ctype.h> 00045 #include <math.h> 00046 00047 #include "machine.h" 00048 #include "bu.h" 00049 #include "vmath.h" 00050 #include "bn.h" 00051 #include "raytrace.h" 00052 00053 #undef rt_bomb /* in case compat4.h defines one */ 00054 00055 /* 00056 * R T _ B O M B 00057 * 00058 * Compatibility routine 00059 * If an RT program is going to dump core, make sure we check 00060 * our debug flags too. 00061 */ 00062 void 00063 rt_bomb(const char *s) 00064 { 00065 if(RT_G_DEBUG || rt_g.NMG_debug ) 00066 bu_debug |= BU_DEBUG_COREDUMP; 00067 bu_bomb(s); 00068 } 00069 00070 /* 00071 * Local Variables: 00072 * mode: C 00073 * tab-width: 8 00074 * c-basic-offset: 4 00075 * indent-tabs-mode: t 00076 * End: 00077 * ex: shiftwidth=4 tabstop=8 00078 */