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

@@ -29,7 +29,7 @@ void DrawElementsUInt::write(DataOutputStream* out){
((ive::PrimitiveSet*)(prim))->write(out);
}
else
throw Exception("DrawElementsUInt::write(): Could not cast this osg::DrawElementsUInt to an osg::PrimitiveSet.");
out_THROW_EXCEPTION("DrawElementsUInt::write(): Could not cast this osg::DrawElementsUInt to an osg::PrimitiveSet.");
// Write DrawElementsUInt's properties.
// Write array length and its elements.
@@ -50,7 +50,7 @@ void DrawElementsUInt::read(DataInputStream* in)
((ive::PrimitiveSet*)(prim))->read(in);
}
else
throw Exception("DrawElementsUInt::read(): Could not cast this osg::DrawElementsUInt to an osg::PrimitiveSet.");
in_THROW_EXCEPTION("DrawElementsUInt::read(): Could not cast this osg::DrawElementsUInt to an osg::PrimitiveSet.");
// Read array length and its elements.
int size = in->readInt();
@@ -66,6 +66,6 @@ void DrawElementsUInt::read(DataInputStream* in)
}
}
else{
throw Exception("DrawElementsUInt::read(): Expected DrawElementsUInt identification.");
in_THROW_EXCEPTION("DrawElementsUInt::read(): Expected DrawElementsUInt identification.");
}
}