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

@@ -31,7 +31,7 @@ void PagedLOD::write(DataOutputStream* out)
static_cast<ive::Node*>(node)->write(out);
}
else
throw Exception("PagedLOD::write(): Could not cast this osg::PagedLOD to an osg::Node.");
out_THROW_EXCEPTION("PagedLOD::write(): Could not cast this osg::PagedLOD to an osg::Node.");
out->writeString(getDatabasePath());
out->writeFloat(getRadius());
@@ -123,7 +123,7 @@ void PagedLOD::read(DataInputStream* in)
((ive::Node*)(node))->read(in);
}
else
throw Exception("PagedLOD::read(): Could not cast this osg::PagedLOD to an osg::Node.");
in_THROW_EXCEPTION("PagedLOD::read(): Could not cast this osg::PagedLOD to an osg::Node.");
if ( in->getVersion() >= VERSION_0006 )
@@ -203,6 +203,6 @@ void PagedLOD::read(DataInputStream* in)
}
}
else{
throw Exception("LOD::read(): Expected LOD identification.");
in_THROW_EXCEPTION("LOD::read(): Expected LOD identification.");
}
}