/[ascend]/trunk/base/generic/general/except.c
ViewVC logotype

Contents of /trunk/base/generic/general/except.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1144 - (show annotations) (download) (as text)
Mon Jan 15 10:42:11 2007 UTC (13 years ago) by johnpye
File MIME type: text/x-csrc
File size: 1060 byte(s)
Added except.[ch] which are intended to hold some TRY..CATCH..FINAL macro goodness to replace the explicit longjmp calls.
Added time-watching in LSODE to update GUI in case of long samplelist timesteps (TODO: permit interruption vai this mechanism too).
1 /* ASCEND modelling environment
2 Copyright (C) 1997 Benjamin Andrew Allan
3 Copyright (C) 2006 Carnegie Mellon University
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19 *//* @file
20 Some nice syntax for exceptions in C.
21 See http://www.swig.org/Doc1.1/HTML/Exceptions.html#n3
22
23 File : except.c
24 Just the declaration of a few global variables we're going to use
25 */
26
27 #include <setjmp.h>
28 jmp_buf exception_buffer;
29 int exception_status;

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22