/usr/include/opencascade/Standard_Failure.lxx is in libopencascade-foundation-dev 6.5.0.dfsg-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | // ------------------------------------------------------------------
// Print (me; s: in out OStream) returns OStream;
// ------------------------------------------------------------------
//++++ void Standard_Failure::Print (Standard_OStream& AStream) const
//++++ {
//++++ AStream << ": " << myMessage << endl;
inline Standard_OStream& operator <<(Standard_OStream& AStream,
const Handle(Standard_Failure)& AFailure)
{
AFailure->Print(AStream);
return AStream;
}
//=======================================================================
//function : GetMessageString
//purpose : Returns error message
//=======================================================================
inline Standard_CString Standard_Failure::GetMessageString () const
{
return (myMessage ? myMessage+sizeof(Standard_Integer) : myMessage);
}
|