Go to the source code of this file.
Macros | |
#define | ARRLEN(x) (sizeof(x) / sizeof((x)[0])) |
#define | MYMIN(a, b) ((a) < (b) ? (a) : (b)) |
#define | MYMAX(a, b) ((a) > (b) ? (a) : (b)) |
#define | CONTAINS(c, v) (std::find((c).begin(), (c).end(), (v)) != (c).end()) |
#define | SORT_AND_UNIQUE(c) |
#define | DISABLE_CLASS_COPY(C) |
#define | ALLOW_CLASS_MOVE(C) |
#define ALLOW_CLASS_MOVE | ( | C | ) |
#define ARRLEN | ( | x | ) | (sizeof(x) / sizeof((x)[0])) |
Referenced by EmergeManager::EmergeManager(), Server::Server(), Decoration::canPlaceDecoration(), ClientMap::getBackgroundBrightness(), Logger::getLevelLabel(), Mapgen::getMapgenName(), Mapgen::getMapgenNames(), Mapgen::getMapgenType(), MapBlock::getModifiedReasonString(), init_log_streams(), MyEventReceiver::OnEvent(), EmergeManager::reportCompletedEmerge(), SDL_Main(), TestRandom::testPcgRandomNormalDist(), Server::ShutdownState::tick(), and use_debugger().
#define CONTAINS | ( | c, | |
v ) (std::find((c).begin(), (c).end(), (v)) != (c).end()) |
Referenced by LBMContentMapping::addLBM(), ABMHandler::apply(), Decoration::canPlaceDecoration(), checkModNameWhitelisted(), ModApiEnvBase::findNodeNear(), ModApiEnvBase::findNodesInAreaUnderAir(), OreBlob::generate(), OrePuff::generate(), OreScatter::generate(), OreSheet::generate(), OreStratum::generate(), OreVein::generate(), NodeDefManager::nodeboxConnects(), ModChannel::registerConsumer(), TestNodeResolver::testNodeResolving(), and workOnBoth().
#define DISABLE_CLASS_COPY | ( | C | ) |
#define MYMAX | ( | a, | |
b ) ((a) > (b) ? (a) : (b)) |
Referenced by ABMWithState::ABMWithState(), con::ConnectionSendThread::ConnectionSendThread(), GUIChatConsole::GUIChatConsole(), GUITable::GUITable(), MeshUpdateManager::MeshUpdateManager(), RenderingEngine::RenderingEngine(), MapgenV6::addMud(), addPostProcessing(), MapblockMeshGenerator::blendLightColor(), con::CALC_DTIME(), CavesRandomWalk::carveRoute(), CavesV6::carveRoute(), PlayerSAO::checkMovementCheat(), clamp_u8(), ChatPrompt::clampView(), NodeDefManager::clear(), ServerEnvironment::clearObjects(), collisionMoveSimple(), componentwise_max(), ExtrusionMeshCache::create(), ChatPrompt::cursorOperation(), MapblockMeshGenerator::drawAutoLightedCuboid(), GUIEngine::drawBackground(), GUIChatConsole::drawPrompt(), sound::PlayingSound::fade(), OreSheet::generate(), OreStratum::generate(), MapgenBasic::generateBiomes(), MapgenV6::generateCaves(), ShaderSource::generateShader(), get_mapgen_edges(), getDownscaleFactor(), getFaceLight(), Camera::getFovMax(), MapNode::getLight(), Pathfinder::getPath(), MapgenFlat::getSpawnLevelAtPoint(), MapgenFractal::getSpawnLevelAtPoint(), MapgenV5::getSpawnLevelAtPoint(), Pathfinder::getXZManhattanDist(), ClientMediaDownloader::initialStep(), isBlockInSight(), Mapgen::lightSpread(), CavesRandomWalk::makeCave(), CavesV6::makeCave(), Client::makeScreenshot(), Game::nodePlacement(), LocalPlayer::old_move(), GUITable::OnEvent(), GUIFormSpecMenu::parseSize(), Ore::placeOre(), read_hud_change(), read_hud_element(), UDPSocket::Receive(), Sky::render(), con::ConnectionSendThread::run(), con::ConnectionSendThread::runTimeouts(), AreaStore::setCacheParams(), GUITable::setOverrideFont(), GUITable::setTable(), ClientEnvironment::step(), PlayerSAO::step(), ClientEnvironment::updateFrameTime(), GenericCAO::updateLight(), GUITable::updateScrollBar(), and UDPSocket::WaitData().
#define MYMIN | ( | a, | |
b ) ((a) < (b) ? (a) : (b)) |
Referenced by ABMWithState::ABMWithState(), MeshUpdateManager::MeshUpdateManager(), con::CALC_DTIME(), clamp_u8(), ChatPrompt::clampView(), collisionMoveSimple(), componentwise_min(), ChatPrompt::cursorOperation(), ContentFeatures::deSerialize(), GUITable::draw(), MapblockMeshGenerator::drawCuboid(), drawItemStack(), MapblockMeshGenerator::drawMeshNode(), Hud::drawSelectionMesh(), Server::findSpawnPos(), OreSheet::generate(), OreStratum::generate(), CavernsNoise::generateCaverns(), CCraftDefManager::getCraftRecipes(), MapNode::getFaceDir(), MapBlock::getModifiedReasonString(), Pathfinder::getPath(), MapgenParams::getSpawnRangeMax(), MapNode::getWallMounted(), Pathfinder::getXZManhattanDist(), Game::handleClientEvent_PlayerDamage(), LuaSecureRandom::l_next_bytes(), PlayerDatabaseSQLite3::loadPlayer(), Client::makeScreenshot(), mystrlcpy(), GUIFormSpecMenu::OnEvent(), GUIFormSpecMenu::parseTabHeader(), Ore::placeOre(), Game::processItemSelection(), sound::OggVorbisBufferSource::read_func(), read_hud_change(), read_hud_element(), Sky::render(), MapNode::rotateAlongYAxis(), sound::OggVorbisBufferSource::seek_func(), Server::SendActiveObjectRemoveAdd(), PlayerSAO::setMaxSpeedOverride(), setupCuboidVertices(), Player::setWieldIndex(), Camera::step(), ClientEnvironment::step(), Camera::update(), Sky::update(), DirectionalLight::update_frustum(), Game::updateCamera(), Game::updateFrame(), con::Channel::UpdateTimers(), and write_array_slice_float().
#define SORT_AND_UNIQUE | ( | c | ) |
Referenced by ABMHandler::ABMHandler(), and LBMContentMapping::addLBM().