00001 #ifndef FluxExecption_H_ 00002 #define FluxExecption_H_ 00003 00013 #include <strstream> 00014 00015 00016 #define FATAL_MACRO(output)\ 00017 do{std::ostrstream message; \ 00018 message <<__FILE__<<":"<<__LINE__<<": "<<output<<'\0';\ 00019 throw(message.str());}while(0) 00020 00021 #define WARNING_MACRO(output)\ 00022 std::cerr << output << std::endl; 00023 00024 #endif // _ERROR_H_ 00025
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001