Converted .ive plugin from using C++ exceptions to using a local equivelant, enabling the build on embedded systems.

This commit is contained in:
Robert Osfield
2009-11-17 12:54:55 +00:00
parent a8abfd64c4
commit f417706b06
128 changed files with 790 additions and 655 deletions

View File

@@ -27,7 +27,7 @@ void LOD::write(DataOutputStream* out){
((ive::Group*)(group))->write(out);
}
else
throw Exception("LOD::write(): Could not cast this osg::LOD to an osg::Group.");
out_THROW_EXCEPTION("LOD::write(): Could not cast this osg::LOD to an osg::Group.");
// Write LOD's properties.
out->writeFloat(getRadius());
@@ -60,7 +60,7 @@ void LOD::read(DataInputStream* in){
((ive::Group*)(group))->read(in);
}
else
throw Exception("LOD::read(): Could not cast this osg::LOD to an osg::Group.");
in_THROW_EXCEPTION("LOD::read(): Could not cast this osg::LOD to an osg::Group.");
// Read LOD's properties
if ( in->getVersion() > VERSION_0002 )
@@ -82,6 +82,6 @@ void LOD::read(DataInputStream* in){
}
}
else{
throw Exception("LOD::read(): Expected LOD identification.");
in_THROW_EXCEPTION("LOD::read(): Expected LOD identification.");
}
}