Converted .ive plugin from using C++ exceptions to using a local equivelant, enabling the build on embedded systems.
This commit is contained in:
@@ -30,7 +30,7 @@ void Sequence::write(DataOutputStream* out)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw Exception("Sequence::write(): Could not cast this osg::Sequence to an osg::Group.");
|
||||
out_THROW_EXCEPTION("Sequence::write(): Could not cast this osg::Sequence to an osg::Group.");
|
||||
}
|
||||
|
||||
// Write Sequence's properties.
|
||||
@@ -104,7 +104,7 @@ void Sequence::read(DataInputStream* in)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw Exception("Sequence::read(): Could not cast this osg::Sequence to an osg::Group.");
|
||||
in_THROW_EXCEPTION("Sequence::read(): Could not cast this osg::Sequence to an osg::Group.");
|
||||
}
|
||||
|
||||
// Read Sequence's properties
|
||||
@@ -153,6 +153,6 @@ void Sequence::read(DataInputStream* in)
|
||||
}
|
||||
else
|
||||
{
|
||||
throw Exception("Sequence::read(): Expected Sequence identification.");
|
||||
in_THROW_EXCEPTION("Sequence::read(): Expected Sequence identification.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user