MeshKit
1.0
|
00001 #include "meshkit/Error.hpp" 00002 #include <stdio.h> 00003 #include <stdarg.h> 00004 00005 namespace MeshKit { 00006 00007 Error::Error( int err, const char* format, ... ) 00008 { 00009 char buffer[512]; 00010 va_list args; 00011 va_start(args, format); 00012 vsnprintf(buffer, sizeof(buffer)-1, format, args); 00013 errDescription = buffer; 00014 va_end(args); 00015 } 00016 00017 }