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

@@ -32,7 +32,8 @@ void Text::write(DataOutputStream* out){
((ive::Drawable*)(obj))->write(out);
}
else
throw Exception("Text::write(): Could not cast this osgText::Text to an osg::Drawable.");
out_THROW_EXCEPTION("Text::write(): Could not cast this osgText::Text to an osg::Drawable.");
// Write Text's properties.
if( getFont() )
{
@@ -154,7 +155,7 @@ void Text::read(DataInputStream* in){
((ive::Drawable*)(obj))->read(in);
}
else
throw Exception("Text::read(): Could not cast this osgText::Text to an osg::Drawable.");
in_THROW_EXCEPTION("Text::read(): Could not cast this osgText::Text to an osg::Drawable.");
// Read Text's properties
unsigned int width, height;
@@ -253,6 +254,6 @@ void Text::read(DataInputStream* in){
}
else{
throw Exception("Text::read(): Expected Text identification.");
in_THROW_EXCEPTION("Text::read(): Expected Text identification.");
}
}