Annotation of parser3/src/main/pa_exception.C, revision 1.11
1.8 paf 1: /** @file
1.9 paf 2: Parser: exception class.
3:
1.5 paf 4: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
1.9 paf 5:
1.6 paf 6: Author: Alexander Petrosyan <paf@design.ru> (http://design.ru/paf)
1.1 paf 7: */
1.11 ! parser 8: static const char *RCSId="$Id: double.C,v 1.31 2001/06/28 07:41:59 parser Exp $";
1.1 paf 9:
10: #include <stdio.h>
11: #include <stdlib.h>
12:
1.7 paf 13: #include "pa_common.h"
1.1 paf 14: #include "pa_exception.h"
15:
1.4 paf 16: void Exception::_throw(const String *atype, const String *acode,
1.1 paf 17: const String *aproblem_source,
1.4 paf 18: const char *comment_fmt, ...) const {
1.1 paf 19: ftype=atype;
20: fcode=acode;
21: fproblem_source=aproblem_source;
1.2 paf 22:
23: if(comment_fmt) {
24: va_list args;
25: va_start(args, comment_fmt);
26: vsnprintf(fcomment, MAX_STRING, comment_fmt, args);
27: va_end(args);
28: } else
29: fcomment[0]=0;
1.1 paf 30:
31: longjmp(mark, 1);
32: }
E-mail: