|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Definition of base types and functions in a cross-platform compatible way. More...
#include <stdint.h>#include <algorithm>#include <array>#include <bit>#include <cassert>#include <cctype>#include <cerrno>#include <climits>#include <cmath>#include <cstddef>#include <cstdint>#include <cstdio>#include <cstring>#include <cstdlib>#include <cwchar>#include <deque>#include <exception>#include <functional>#include <iterator>#include <list>#include <limits>#include <map>#include <memory>#include <numeric>#include <optional>#include <set>#include <source_location>#include <span>#include <stdexcept>#include <string>#include <type_traits>#include <variant>#include <vector>Go to the source code of this file.
Macros | |
| #define | __STDC_LIMIT_MACROS |
| #define | EMPTY_BASES |
| #define | PATHSEP "/" |
| #define | PATHSEPCHAR '/' |
| #define | PACK_N(type_dec, n) |
| #define | PACK(type_dec) |
| #define | debug_inline |
| #define | PERSONAL_DIR "" |
| #define | M_PI_2 1.57079632679489661923 |
| #define | M_PI 3.14159265358979323846 |
| #define | lengthof(array) |
| Return the length of an fixed size array. | |
| #define | GNU_TARGET(x) |
| #define | JSON_ASSERT(x) |
| #define | MAX_PATH 260 |
Typedefs | |
| typedef unsigned int | uint |
Functions | |
| static std::string | FS2OTTD (std::string_view name) |
| static std::string | OTTD2FS (std::string_view name) |
| template<typename T, size_t N> | |
| char(& | ArraySizeHelper (T(&array)[N]))[N] |
| void | NOT_REACHED (const std::source_location location=std::source_location::current()) |
| void | AssertFailedError (std::string_view expression, const std::source_location location=std::source_location::current()) |
Definition of base types and functions in a cross-platform compatible way.
Definition in file stdafx.h.
| #define lengthof | ( | array | ) |
Return the length of an fixed size array.
Unlike sizeof this function returns the number of elements of the given type.
| array | The pointer to the first element of the array |
Definition at line 271 of file stdafx.h.
Referenced by AddAcceptedCargoOfHouse(), AddGenericCallback(), AppendFile(), BuildLandLegend(), BuildLinkStatsLegend(), CmdFoundTown(), CargoesRow::ConnectIndustryAccepted(), DetermineBasePaths(), DrawBridgeRoadBits(), LinkGraphOverlay::DrawContent(), ExtractTar(), FillNewGRFVehicleCache(), FinaliseHouseArray(), FixTTOEngines(), FormatBytes(), FormatString(), FreeTerminal(), AirportSpec::Get(), AirportTileSpec::Get(), CargoSpec::Get(), GetAllCargoSuffixes(), CargoSpec::GetArraySize(), GetBridgeSpec(), NWidgetMainToolbarContainer::GetButtonArrangement(), NWidgetScenarioToolbarContainer::GetButtonArrangement(), GetFileTitle(), GetMaxTreeSpriteSize(), GetNetworkErrorMsg(), GetNewgrfCurrencyIdConverted(), GetNumberOfIndustries(), GetTextfile(), GetVelocityUnits(), NetworkChatWindow::GetWidgetString(), AirportSpec::GetWithoutOverride(), StringReader::HandlePragma(), IndustryCargoesWindow::HousesCanAccept(), IndustriesChangeInfo(), OpenGLBackend::InitShaders(), SmallSet< Tdir, items >::IsFull(), Vehicle::LoadOldVehicle, MakeHeightmapScreenshot(), MakePerformanceDetailPanels(), MidiGetStandardSysexMessage(), NetworkServerShowStatusToConsole(), SmallMapWindow::OnInit(), OutputContentState(), ClientNetworkGameSocketHandler::Receive_SERVER_ERROR(), ResetObjects(), RunTileLoop(), SmallMapWindow::SetZoomLevel(), CrashLogOSX::SurveyStacktrace(), CrashLogUnix::SurveyStacktrace(), and TownHouseChangeInfo().
| #define PACK_N | ( | type_dec, | |
| n ) |
| void AssertFailedError | ( | std::string_view | expression, |
| const std::source_location | location = std::source_location::current() ) |
| void NOT_REACHED | ( | const std::source_location | location = std::source_location::current() | ) |