Converted .ive plugin from using C++ exceptions to using a local equivelant, enabling the build on embedded systems.
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user