1 /********************************************************************/
2 /*                                                                  */
3 /*  rtl_err.h     Runtime error and exception handling procedures.  */
4 /*  Copyright (C) 1989 - 2005  Thomas Mertes                        */
5 /*                                                                  */
6 /*  This file is part of the Seed7 Runtime Library.                 */
7 /*                                                                  */
8 /*  The Seed7 Runtime Library is free software; you can             */
9 /*  redistribute it and/or modify it under the terms of the GNU     */
10 /*  Lesser General Public License as published by the Free Software */
11 /*  Foundation; either version 2.1 of the License, or (at your      */
12 /*  option) any later version.                                      */
13 /*                                                                  */
14 /*  The Seed7 Runtime Library is distributed in the hope that it    */
15 /*  will be useful, but WITHOUT ANY WARRANTY; without even the      */
16 /*  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */
17 /*  PURPOSE.  See the GNU Lesser General Public License for more    */
18 /*  details.                                                        */
19 /*                                                                  */
20 /*  You should have received a copy of the GNU Lesser General       */
21 /*  Public License along with this program; if not, write to the    */
22 /*  Free Software Foundation, Inc., 51 Franklin Street,             */
23 /*  Fifth Floor, Boston, MA  02110-1301, USA.                       */
24 /*                                                                  */
25 /*  Module: Seed7 Runtime Library                                   */
26 /*  File: seed7/src/rtl_err.h                                       */
27 /*  Changes: 1990, 1991, 1992, 1993, 1994, 2005  Thomas Mertes      */
28 /*  Content: Runtime error and exception handling procedures.       */
29 /*                                                                  */
30 /********************************************************************/
31 
32 #define raise_error(num) raise_error2(num, __FILE__, __LINE__)
33 
34 
35 void raise_error2 (int exception_num, const_cstriType filename, int line);
36 #if !HAS_SNPRINTF
37 int snprintf (char *buffer, size_t bufsize, const char *fmt, ...);
38 #endif
39 #if !HAS_VSNPRINTF
40 #define vsnprintf _vsnprintf
41 #endif
42