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

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.9     ! paf         8:        $Id: pa_exception.C,v 1.8 2001/03/19 16:44:02 paf Exp $
1.1       paf         9: */
                     10: 
                     11: #include <stdio.h>
                     12: #include <stdlib.h>
                     13: 
1.7       paf        14: #include "pa_common.h"
1.1       paf        15: #include "pa_exception.h"
                     16: 
1.4       paf        17: void Exception::_throw(const String *atype, const String *acode,
1.1       paf        18:                                          const String *aproblem_source, 
1.4       paf        19:                                          const char *comment_fmt, ...) const {
1.1       paf        20:        ftype=atype;
                     21:        fcode=acode;
                     22:        fproblem_source=aproblem_source;
1.2       paf        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;
1.1       paf        31: 
                     32:        longjmp(mark, 1);
                     33: }

E-mail: