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

@@ -25,7 +25,7 @@ void Scribe::write(DataOutputStream* out){
((ive::Effect*)(effect))->write(out);
}
else
throw Exception("Scribe::write(): Could not cast this osgFX::Scribe to an osgFX::Effect.");
out_THROW_EXCEPTION("Scribe::write(): Could not cast this osgFX::Scribe to an osgFX::Effect.");
// Write Scribe's properties.
out->writeVec4(getWireframeColor());
@@ -45,13 +45,13 @@ void Scribe::read(DataInputStream* in){
((ive::Effect*)(effect))->read(in);
}
else
throw Exception("Scribe::read(): Could not cast this osgFX::Scribe to an osgFX::Effect.");
in_THROW_EXCEPTION("Scribe::read(): Could not cast this osgFX::Scribe to an osgFX::Effect.");
// Read Scribe's properties
setWireframeColor(in->readVec4());
setWireframeLineWidth(in->readFloat());
}
else{
throw Exception("Scribe::read(): Expected Scribe identification.");
in_THROW_EXCEPTION("Scribe::read(): Expected Scribe identification.");
}
}