Added #ifdef IVE_CATCH_EXCEPTIONS to allow catching of exceptions to be

turned off for debugging purposes.
This commit is contained in:
Robert Osfield 2003-09-12 13:02:03 +00:00
parent 1c13b29080
commit 8e15f5fa9d

View File

@ -30,11 +30,15 @@ class IVEReaderWriter : public ReaderWriter
virtual ReadResult readNode(std::istream& fin, const Options*)
{
#define IVE_CATCH_EXCEPTIONS
#ifdef IVE_CATCH_EXCEPTIONS
try{
#endif
// Create datainputstream.
ive::DataInputStream in(&fin);
return in.readNode();
#ifdef IVE_CATCH_EXCEPTIONS
}
catch(ive::Exception e)
{
@ -42,6 +46,7 @@ class IVEReaderWriter : public ReaderWriter
return ReadResult::FILE_NOT_HANDLED;
}
return 0;
#endif
}
virtual WriteResult writeNode(const Node& node,const std::string& fileName, const osgDB::ReaderWriter::Options* options)