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