00001 /* 00002 BSPonMPI. This is an implementation of the BSPlib standard on top of MPI 00003 Copyright (C) 2006 Wijnand J. Suijlen 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 00019 You may contact me via electronic mail: 00020 wjsuijle@users.sourceforge.net 00021 or snail mail: 00022 W.J. Suijlen 00023 Kraaiheidelaan 10 00024 2803 VP Gouda 00025 The Netherlands 00026 */ 00027 00033 #ifndef BSP_ABORT_H 00034 #define BSP_ABORT_H 00035 00036 00042 #define ERR_GET_DELIVERED 5 00043 00044 #define ERR_STACK_COUNTER_OVERFLOW 4 00045 00046 #define ERR_POP_REG_WITHOUT_PUSH 3 00047 00048 #define ERR_NOT_ENOUGH_MEMORY 2 00049 00050 #define ERR_BSP_ABORT 1 00051 00053 #define ERR_MESSAGES \ 00054 { "abnormal program termination\n"\ 00055 , "Not enough memory\n"\ 00056 , "bsp_pop_reg without bsp_push_reg\n"\ 00057 , "stack counter overflow"\ 00058 , "a bsp_get() is delivered! contact the library maintainer"\ 00059 } 00060 00069 void 00070 bsp_intern_abort (const int err_number, const char *func, 00071 const char *file, int line); 00072 00073 #endif