Annotation of parser3/src/main/pa_exception.C, revision 1.10

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.5       paf         7: 
1.10    ! parser      8:        $Id: pa_exception.C,v 1.9 2001/03/19 17:42:16 paf Exp $
1.1       paf         9: */
1.10    ! parser     10: static char *RCSId="$Id$"; 
1.1       paf        11: 
                     12: #include <stdio.h>
                     13: #include <stdlib.h>
                     14: 
1.7       paf        15: #include "pa_common.h"
1.1       paf        16: #include "pa_exception.h"
                     17: 
1.4       paf        18: void Exception::_throw(const String *atype, const String *acode,
1.1       paf        19:                                          const String *aproblem_source, 
1.4       paf        20:                                          const char *comment_fmt, ...) const {
1.1       paf        21:        ftype=atype;
                     22:        fcode=acode;
                     23:        fproblem_source=aproblem_source;
1.2       paf        24: 
                     25:        if(comment_fmt) {
                     26:                va_list args;
                     27:                va_start(args, comment_fmt);
                     28:                vsnprintf(fcomment, MAX_STRING, comment_fmt, args);
                     29:                va_end(args);
                     30:        } else 
                     31:                fcomment[0]=0;
1.1       paf        32: 
                     33:        longjmp(mark, 1);
                     34: }

E-mail: