Actually, don't define

This commit is contained in:
vittorioromeo 2024-09-30 23:46:11 +02:00 committed by Chris Thrasher
parent 71594d402e
commit 37de949d87
18 changed files with 21 additions and 23 deletions

View File

@ -31,7 +31,7 @@
////////////////////////////////////////////////////////////
// Define portable import / export macros
// Portable import / export macros
////////////////////////////////////////////////////////////
#if defined(SFML_AUDIO_EXPORTS)

View File

@ -63,7 +63,7 @@ public:
T length{}; //!< The length of the time range
};
// Define the relevant Span types
// Associated `Span` type
using TimeSpan = Span<Time>;
////////////////////////////////////////////////////////////

View File

@ -26,7 +26,7 @@
////////////////////////////////////////////////////////////
// Define the SFML version
// SFML version
////////////////////////////////////////////////////////////
#define SFML_VERSION_MAJOR 3
#define SFML_VERSION_MINOR 0
@ -112,7 +112,7 @@
////////////////////////////////////////////////////////////
// Define a portable debug macro
// Portable debug macro
////////////////////////////////////////////////////////////
#if !defined(NDEBUG)
@ -122,7 +122,7 @@
////////////////////////////////////////////////////////////
// Define helpers to create portable import / export macros for each module
// Helpers to create portable import / export macros for each module
////////////////////////////////////////////////////////////
#if !defined(SFML_STATIC)

View File

@ -31,7 +31,7 @@
////////////////////////////////////////////////////////////
// Define portable import / export macros
// Portable import / export macros
////////////////////////////////////////////////////////////
#if defined(SFML_GRAPHICS_EXPORTS)

View File

@ -41,7 +41,7 @@ namespace sf
class Angle;
////////////////////////////////////////////////////////////
/// \brief Define a 3x3 transform matrix
/// \brief 3x3 transform matrix
///
////////////////////////////////////////////////////////////
class Transform

View File

@ -35,7 +35,7 @@
namespace sf
{
////////////////////////////////////////////////////////////
/// \brief Define a point with color and texture coordinates
/// \brief Point with color and texture coordinates
///
/// By default, the vertex color is white and texture coordinates are (0, 0).
///

View File

@ -45,7 +45,7 @@ namespace sf
class RenderTarget;
////////////////////////////////////////////////////////////
/// \brief Define a set of one or more 2D primitives
/// \brief Set of one or more 2D primitives
///
////////////////////////////////////////////////////////////
class SFML_GRAPHICS_API VertexArray : public Drawable

View File

@ -31,7 +31,7 @@
////////////////////////////////////////////////////////////
// Define portable import / export macros
// Portable import / export macros
////////////////////////////////////////////////////////////
#if defined(SFML_NETWORK_EXPORTS)

View File

@ -61,7 +61,7 @@ public:
};
////////////////////////////////////////////////////////////
/// \brief Define a FTP response
/// \brief FTP response
///
////////////////////////////////////////////////////////////
class SFML_NETWORK_API Response

View File

@ -50,7 +50,7 @@ class SFML_NETWORK_API Http
{
public:
////////////////////////////////////////////////////////////
/// \brief Define a HTTP request
/// \brief HTTP request
///
////////////////////////////////////////////////////////////
class SFML_NETWORK_API Request
@ -187,7 +187,7 @@ public:
};
////////////////////////////////////////////////////////////
/// \brief Define a HTTP response
/// \brief HTTP response
///
////////////////////////////////////////////////////////////
class SFML_NETWORK_API Response

View File

@ -37,8 +37,7 @@
namespace sf
{
////////////////////////////////////////////////////////////
// Define the low-level socket handle type, specific to
// each platform
// Low-level socket handle type, specific to each platform
////////////////////////////////////////////////////////////
#if defined(SFML_SYSTEM_WINDOWS)

View File

@ -31,7 +31,7 @@
////////////////////////////////////////////////////////////
// Define portable import / export macros
// Portable import / export macros
////////////////////////////////////////////////////////////
#if defined(SFML_SYSTEM_EXPORTS)

View File

@ -308,7 +308,7 @@ template <typename T>
template <typename T>
[[nodiscard]] constexpr bool operator!=(const Vector3<T>& left, const Vector3<T>& right);
// Define the most common types
// Aliases for the most common types
using Vector3i = Vector3<int>;
using Vector3f = Vector3<float>;

View File

@ -31,7 +31,7 @@
////////////////////////////////////////////////////////////
// Define portable import / export macros
// Portable import / export macros
////////////////////////////////////////////////////////////
#if defined(SFML_WINDOW_EXPORTS)

View File

@ -76,8 +76,7 @@ using WindowHandle = "platform-specific";
/// \typedef sf::WindowHandle
/// \ingroup window
///
/// Define a low-level window handle type, specific to
/// each platform.
/// Low-level window handle type, specific to each platform.
///
/// Platform | Type
/// ----------------|------------------------------------------------------------

View File

@ -53,7 +53,7 @@ namespace sf::priv
bool glCheckError(const std::filesystem::path& file, unsigned int line, std::string_view expression);
////////////////////////////////////////////////////////////
/// Define a macro to quickly check every OpenGL API call
/// Macro to quickly check every OpenGL API call
////////////////////////////////////////////////////////////
#ifdef SFML_DEBUG
// In debug mode, perform a test on every OpenGL call

View File

@ -45,7 +45,7 @@
namespace
{
// Define the low-level send/receive flags, which depend on the OS
// Low-level send/receive flags (OS-dependent)
#ifdef SFML_SYSTEM_LINUX
const int flags = MSG_NOSIGNAL;
#else

View File

@ -53,7 +53,7 @@ namespace sf::priv
bool eglCheckError(const std::filesystem::path& file, unsigned int line, std::string_view expression);
////////////////////////////////////////////////////////////
/// Define a macro to quickly check every EGL API call
/// Macro to quickly check every EGL API call
////////////////////////////////////////////////////////////
#ifdef SFML_DEBUG