Annotation of parser3/src/main/pa_exception.C, revision 1.5
1.1 paf 1: /*
1.5 ! paf 2: Parser
! 3: Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com)
! 4: Author: Alexander Petrosyan <paf@design.ru>
! 5:
! 6: $Id: pa_string.C,v 1.35 2001/03/10 12:12:51 paf Exp $
1.1 paf 7: */
8:
9: #include <stdio.h>
10: #include <stdlib.h>
11:
12: #include "pa_exception.h"
13: #include "pa_common.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: