00001 #include "lib/ShogunException.h" 00002 #include <string.h> 00003 #include <stdio.h> 00004 #include <stdlib.h> 00005 00006 ShogunException::ShogunException(const char* str) 00007 { 00008 val = new char[4096]; 00009 if (val) 00010 strncpy(val,str,4096); 00011 else 00012 { 00013 fprintf(stderr, "Could not even allocate memory for exception - dying.\n"); 00014 exit(1); 00015 } 00016 }