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