Go to the source code of this file.
Macros | |
#define | FUNCTION_NAME __PRETTY_FUNCTION__ |
#define | CATCH_UNHANDLED_EXCEPTIONS 0 |
#define | FATAL_ERROR(msg) fatal_error_fn((msg), __FILE__, __LINE__, FUNCTION_NAME) |
#define | FATAL_ERROR_IF(expr, msg) |
#define | SANITY_CHECK(expr) |
#define | sanity_check(expr) SANITY_CHECK(expr) |
#define | BEGIN_DEBUG_EXCEPTION_HANDLER |
#define | END_DEBUG_EXCEPTION_HANDLER |
Functions | |
void | fatal_error_fn (const char *msg, const char *file, unsigned int line, const char *function) |
void | sanity_check_fn (const char *assertion, const char *file, unsigned int line, const char *function) |
std::string | debug_describe_exc (const std::exception &e) |
void | debug_set_exception_handler () |
#define BEGIN_DEBUG_EXCEPTION_HANDLER |
#define CATCH_UNHANDLED_EXCEPTIONS 0 |
#define END_DEBUG_EXCEPTION_HANDLER |
#define FATAL_ERROR | ( | msg | ) | fatal_error_fn((msg), __FILE__, __LINE__, FUNCTION_NAME) |
Referenced by ScriptApiBase::ScriptApiBase(), con::Peer::addSplitPacket(), ScriptApiServer::allocateDynamicMediaCallback(), Client::allocateUnknownNodeId(), MapNode::deSerializeBulk(), MapblockMeshGenerator::errorUnknownDrawtype(), PointerAction::fromEvent(), Client::getInventory(), con::Connection::getLocalStat(), TouchInteraction::getMode(), PlayerSAO::getStaticData(), porting::getTime(), Server::handleChat(), Game::handleClientEvent_None(), httpfetch_caller_alloc(), httpfetch_caller_alloc_secure(), Server::init(), porting::initializePaths(), StaticObjectList::insert(), ScriptApiBase::luaPanic(), GUIFormSpecMenu::OnEvent(), AsyncEngine::prepareEnvironment(), con::ConnectionSendThread::processNonReliableCommand(), con::ConnectionSendThread::processReliableCommand(), push_nodebox(), AsyncWorkerThread::run(), Map::save(), script_dump_packed(), con::Connection::Send(), InventoryLocation::serialize(), and AsyncEngine::stepJobResults().
#define FATAL_ERROR_IF | ( | expr, | |
msg ) |
Referenced by KeyPress::KeyPress(), MapgenValleys::MapgenValleys(), ScriptApiBase::ScriptApiBase(), con::Peer::~Peer(), SingleMediaDownloader::addFile(), LBMContentMapping::addLBM(), LBMManager::addLBMDef(), ServerEnvironment::addPlayer(), StyleSpec::addState(), LBMManager::applyLBMs(), BiomeGen::assertChunkSize(), Schematic::clone(), NodeResolver::cloneTo(), LBMManager::createIntroductionTimesString(), find_packer(), gen_srp_v(), ClientEnvironment::getClientEnvEvent(), Client::getClientEvent(), StyleSpec::getColor(), ScriptApiBase::getCurrentModName(), porting::getDisplayDensity(), porting::getDisplaySize(), porting::getHomeOrFail(), porting::getInputDialogMessage(), porting::getInputDialogSelection(), porting::getInputDialogState(), getItemMesh(), porting::getLanguageAndroid(), porting::getLastInputDialogType(), con::Connection::getLocalStat(), Client::getMesh(), EmergeManager::getOptimalThread(), con::Connection::getPeerNoEx(), StyleSpec::getRect(), StyleSpec::getTexture(), ScriptApiSecurity::getThread(), StyleSpec::getVector2i(), EmergeManager::getWritableBiomeManager(), EmergeManager::getWritableDecorationManager(), EmergeManager::getWritableOreManager(), EmergeManager::getWritableSchematicManager(), porting::hasPhysicalKeyboardAndroid(), httpfetch_init(), ServerMap::initBlockMake(), ModApiIPC::Initialize(), EmergeManager::initMap(), EmergeManager::initMapgens(), LocalPlayer::isDead(), ModApiBase::l_deprecated_function(), Client::loadMedia(), GUIKeyChangeMenu::OnEvent(), porting::openURIAndroid(), Settings::operator=(), GUIFormSpecMenu::parseBackground(), Game::processClientEvents(), con::UDPPeer::processReliableSendCommand(), Client::ReceiveAll(), CItemDefManager::registerItem(), AsyncEngine::registerStateInitializer(), Client::request_media(), EmergeManager::resetMap(), CurlFetchThread::run(), ScriptApiBase::runCallbacksRaw(), AuthDatabaseLevelDB::saveAuth(), script_log_add_source(), script_register_packer(), Client::Send(), Server::Send(), ClientInterface::send(), ClientInterface::sendCustom(), Client::sendInventoryFields(), Client::sendNodemetaFields(), ClientInterface::sendToAll(), MapBlock::serialize(), NodeDefManager::serialize(), ClientMediaDownloader::serializeRequiredHashSet(), Schematic::serializeToLua(), ObjectRef::set_null(), Settings::setDefault(), RemoteClient::setEncryptedPassword(), ClientEnvironment::setLocalPlayer(), ScriptApiSecurity::setLuaEnv(), porting::shareFileAndroid(), porting::showComboBoxDialog(), porting::showTextInputDialog(), Client::startAuth(), Client::step(), and ScriptApiEnv::triggerABM().
#define FUNCTION_NAME __PRETTY_FUNCTION__ |
Referenced by ServerMap::ServerMap(), ModIPCStore::~ModIPCStore(), ServerMap::~ServerMap(), content_nodemeta_deserialize_legacy(), NodeMetadataList::deSerialize(), MapBlock::deSerialize_pre22(), ServerEnvironment::getRemovedActiveObjects(), ModApiServer::l_get_player_information(), GenericCAO::processMessage(), and Server::SendActiveObjectRemoveAdd().
#define SANITY_CHECK | ( | expr | ) |
Referenced by sound::OpenALSoundManager::OpenALSoundManager(), PlayerSAO::PlayerSAO(), ActiveObjectMgr< T >::~ActiveObjectMgr(), sound::ProxySoundManager::~ProxySoundManager(), ServerInventoryManager::checkDetachedInventoryAccess(), NodeMetaRef::clearMeta(), ModApiServer::l_dynamic_add_media(), ServerEnvironment::loadMeta(), TestCraft::registerItemWithGroups(), PlayerSAO::removingFromEnvironment(), and NodeMetaRef::reportMetadataChange().
#define sanity_check | ( | expr | ) | SANITY_CHECK(expr) |
Referenced by ModifySafeMap< K, V >::ModifySafeMap(), RenderingEngine::RenderingEngine(), AsyncWorkerThread::~AsyncWorkerThread(), RenderingEngine::~RenderingEngine(), WieldMeshSceneNode::~WieldMeshSceneNode(), ServerEnvironment::addActiveObjectRaw(), TouchControls::applyContextControls(), Schematic::blitToVManip(), cloneMeshBuffer(), Client::connect(), ExtrusionMeshCache::create(), ServerInventoryManager::createDetachedInventory(), createDevice(), createInventoryCubeImage(), con::Peer::DecUseCount(), ChatBuffer::deleteOldest(), GUIFormSpecMenu::drawMenu(), GUIFormSpecMenu::drawSelectedItem(), Server::dynamicAddMedia(), GUIModalMenu::enter(), ImageSource::generateImagePart(), TextureSource::generateTexture(), RenderingEngine::get_raw_device(), RenderingEngine::get_video_driver(), ServerInventoryManager::getInventory(), RenderingEngine::getLastPointerType(), TextureSource::getPalette(), RenderingEngine::getWindowSize(), Client::handleCommand_AnnounceMedia(), Client::handleCommand_ItemDef(), Client::handleCommand_Media(), Client::handleCommand_NodeDef(), FontEngine::initFont(), porting::initializePaths(), con::IncomingSplitPacket::insert(), con::ReliablePacketBuffer::insert(), TextureSource::insertSourceImage(), ShaderSource::insertSourceShader(), ScriptApiItem::item_CraftPredict(), ModApiMainMenu::l_close(), ModApiMainMenu::l_do_async_callback(), ModApiMainMenu::l_get_content_translation(), LuaCamera::l_get_look_horizontal(), LuaCamera::l_get_look_vertical(), ModApiMainMenu::l_get_mainmenu_path(), LuaCamera::l_get_offset(), ModApiMainMenu::l_get_table_index(), ModApiMainMenu::l_open_url_dialog(), ModApiMainMenu::l_set_background(), LuaCamera::l_set_camera_mode(), ModApiMainMenu::l_set_clouds(), ModApiMainMenu::l_set_formspec_prepend(), ModApiMainMenu::l_set_topleft_text(), ModApiMainMenu::l_show_keys_menu(), ModApiMainMenu::l_show_path_select_dialog(), ModApiMainMenu::l_start(), ModApiMainMenu::l_update_formspec(), main(), con::makeSplitPacket(), LocalPlayer::move(), LocalPlayer::old_move(), GUIFormSpecMenu::OnEvent(), Server::overrideDayNightRatio(), Schematic::placeOnMap(), Schematic::placeOnVManip(), GUIFormSpecMenu::preprocessEvent(), con::UDPPeer::processReliableSendCommand(), read_config_file(), con::IncomingSplitPacket::reassemble(), TextureSource::rebuildImagesAndTextures(), TextureSource::rebuildTexture(), GUIFormSpecMenu::regenerateGui(), ClientMediaDownloader::remoteMediaReceived(), SingleMediaDownloader::remoteMediaReceived(), LambdaThread::rethrow(), PlayerDatabaseLevelDB::savePlayer(), PlayerDatabaseSQLite3::savePlayer(), script_unpack(), Client::sendHaveMedia(), PlayerDatabaseFiles::serialize(), MapNode::serializeBulk(), Server::setClouds(), ServerInventoryManager::setInventoryModified(), Server::setLighting(), Server::setLocalPlayerAnimations(), Server::setMoon(), Server::setPlayerEyeOffset(), Server::setSky(), Server::setStars(), Server::setSun(), Server::stepPendingDynMediaCallbacks(), Settings::updateConfigObject(), and EnrichedString::updateDefaultColor().
std::string debug_describe_exc | ( | const std::exception & | e | ) |
Referenced by ClientLauncher::run(), and script_exception_wrapper().
void debug_set_exception_handler | ( | ) |
|
extern |
References errorstream, g_term_console, and TerminalChatConsole::stopAndWaitforThread().
|
extern |
References errorstream, g_term_console, and TerminalChatConsole::stopAndWaitforThread().