//===========================================================================// // File: verify.cc // // Contents: verification fail routines // //---------------------------------------------------------------------------// // Date Who Modification // // -------- --- ---------------------------------------------------------- // // 09/29/94 JMA Initial coding. // // 11/01/94 JMA Made compatible with SGI CC // // 11/03/94 ECH Made compatible with BC4.0 // // 04/20/95 CPB Added Shutdown calls for ControlsManager, GaugeManager // //---------------------------------------------------------------------------// // Copyright (C) 1994-1995, Virtual World Entertainment, Inc. // // PROPRIETARY AND CONFIDENTIAL // //===========================================================================// #include "StuffHeaders.hpp" // //############################################################################# //############################################################################# // static char Error_Message_Buffer[400]; int Stuff::ArmorLevel = 4; float Stuff::SMALL=1e-4f; // //############################################################################# //############################################################################# // #if defined(_ARMOR) Signature::Signature() { mark = Valid; } Signature::~Signature() { mark = Destroyed; } void Stuff::Is_Signature_Bad(const volatile Signature *p) { if ((p) && reinterpret_cast(p)!=Stuff::SNAN_NEGATIVE_LONG) { Verify(!(reinterpret_cast(p) & 3)); if (p->mark == Signature::Destroyed) PAUSE(("Object has been destroyed")); else if (p->mark != Signature::Valid) PAUSE(("Object has been corrupted")); } else PAUSE(("Bad object pointer: %x", p)); } #endif