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

1.1       paf         1: /*
1.4     ! paf         2:   $Id: pa_exception.C,v 1.3 2001/01/30 13:43:43 paf Exp $
1.1       paf         3: */
                      4: 
                      5: #include <stdio.h>
                      6: #include <stdlib.h>
                      7: 
                      8: #include "pa_exception.h"
                      9: #include "pa_common.h"
                     10: 
1.4     ! paf        11: void Exception::_throw(const String *atype, const String *acode,
1.1       paf        12:                                          const String *aproblem_source, 
1.4     ! paf        13:                                          const char *comment_fmt, ...) const {
1.1       paf        14:        ftype=atype;
                     15:        fcode=acode;
                     16:        fproblem_source=aproblem_source;
1.2       paf        17: 
                     18:        if(comment_fmt) {
                     19:                va_list args;
                     20:                va_start(args, comment_fmt);
                     21:                vsnprintf(fcomment, MAX_STRING, comment_fmt, args);
                     22:                va_end(args);
                     23:        } else 
                     24:                fcomment[0]=0;
1.1       paf        25: 
                     26:        longjmp(mark, 1);
                     27: }

E-mail: