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