src/tools/tError.cpp File Reference

#include "aa_config.h"
#include <iostream>
#include <string.h>
#include <cstdlib>
#include "tError.h"
#include "tString.h"

Include dependency graph for tError.cpp:

Go to the source code of this file.

Functions

void st_Breakpoint ()
void st_PresentError (const char *caption, const char *message)
void st_PresentMessage (const char *caption, const char *message)

Variables

char ERROR_MESSAGE [1000]


Function Documentation

void st_Breakpoint (  ) 

Definition at line 46 of file tError.cpp.

Referenced by gAIPlayer::ActOnData(), memblock::Alloc(), tRecorderSync< DATA >::Archive(), gAITeam::BalanceWithAIs(), eNetGameObject::ClearToTransmit(), gDestination::CopyFrom(), eFace::CorrectArea(), eGrid::DrawLine(), gAIPlayer::EmergencySurvive(), eGameObject::FindCurrentFace(), gGame::GameLoop(), tXmlParserNamespace::tXmlParser::node::GetProp(), gNetPlayerWall::IndexPos(), nNOInitialisator< T >::Init(), init_game_objects(), gCycleMovement::InitAfterCreation(), gCycle::InitAfterCreation(), kill_id_hog(), eCameraSensor::LookAround(), eGameObject::Move(), gNetPlayerWall::MyInitAfterCreation(), gCycleMovement::MyInitAfterCreation(), nWaitForAck::nWaitForAck(), nWaitForAckSync::nWaitForAckSync(), gCycle::OnNotifyNewDestination(), eGrid::ProcessWallsInRange(), nMessage::Read(), gNetPlayerWall::real_Update(), nNetObject::RelabelOnConnect(), eGrid::RemoveEdge(), eGrid::RemovePoint(), gCycle::Render(), gAIPlayer::RightBeforeDeath(), se_DisplayChatLocally(), nMessage::Send(), nMessage::SendImmediately(), eAccessLevelHolder::SetAccessLevel(), tString::SetLen(), gAIPlayer::SetNumberOfAIs(), sg_Timestamp(), st_PresentError(), st_PresentMessage(), rSysDep::SwapGL(), eTimer::SyncTime(), tAdvanceFrame(), tCurrentAccessLevel::tCurrentAccessLevel(), gAIPlayer::Think(), gAIPlayer::ThinkSurvive(), gCycleMovement::Timestep(), gAIPlayer::Timestep(), gCycleMovement::TimestepCore(), tMemStack::~tMemStack(), and tStackObject< T >::~tStackObject().

00046                     {
00047 #ifdef DEBUG
00048     std::cout << "Breakpoint!\n";
00049     int i=0; // a chance to get errors in GDB
00050     i++;
00051 #endif
00052 }

void st_PresentError ( const char *  caption,
const char *  message 
)

Definition at line 56 of file tError.cpp.

References st_Breakpoint().

Referenced by main().

00057 {
00058     std::cerr << caption << ": " << message << "\n";
00059     st_Breakpoint();
00060     static bool error = true; // to disable the error if it is inconvenient right now and you think it may not be fatal
00061     if ( error )
00062     {
00063         throw 1; //tSimpleException( message, caption );
00064         exit(-1);
00065     }
00066 }

Here is the call graph for this function:

Here is the caller graph for this function:

void st_PresentMessage ( const char *  caption,
const char *  message 
)

Definition at line 68 of file tError.cpp.

References st_Breakpoint().

00069 {
00070     std::cerr << caption << ": " << message << "\n";
00071     st_Breakpoint();
00072 }

Here is the call graph for this function:


Variable Documentation

char ERROR_MESSAGE[1000]

Definition at line 109 of file tError.cpp.


Generated on Sat Mar 15 23:11:41 2008 for Armagetron Advanced by  doxygen 1.5.4