basic_exception.cc
上传用户:psq1974
上传日期:2007-01-06
资源大小:1195k
文件大小:1k
- /* Copyright (C) 1998, 1999 State University of New York at Stony Brook
- Author: Andrew V. Shuvalov ( andrew@ecsl.cs.sunysb.edu )
- Software license is located in file "COPYING"
- */
- #include <stdio.h>
- #include <stdlib.h>
- #include "basic_exception.h"
- void BasicException::init( const char *format, ... )
- {
- va_list ap;
- va_start( ap, format );
- init( format, ap );
- va_end( ap );
- }
- void BasicException::init( const char *format, va_list ap )
- {
- char buf[1024];
- vsnprintf( buf, sizeof( buf ), format, ap );
-
- text = buf;
- }