From 235bfe2631ef1643ac7728406441fb2eb7b2db23 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 16 Apr 2024 00:29:14 -0400 Subject: [PATCH] SDL_log.h: Remove SDL_MAX_LOG_MESSAGE. The message length limit was removed in 2.0.24, so there's no need for this define in SDL3 at all. Fixes #9467. --- docs/README-migration.md | 3 +++ include/SDL3/SDL_log.h | 10 ---------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/docs/README-migration.md b/docs/README-migration.md index 046345ee8..14445253c 100644 --- a/docs/README-migration.md +++ b/docs/README-migration.md @@ -903,6 +903,9 @@ SDL_LoadFunction() now returns `SDL_FunctionPointer` instead of `void *`, and sh ## SDL_log.h +The following macros have been removed: +* SDL_MAX_LOG_MESSAGE - there's no message length limit anymore. If you need an artificial limit, this used to be 4096 in SDL versions before 2.0.24. + The following functions have been renamed: * SDL_LogGetOutputFunction() => SDL_GetLogOutputFunction() * SDL_LogSetOutputFunction() => SDL_SetLogOutputFunction() diff --git a/include/SDL3/SDL_log.h b/include/SDL3/SDL_log.h index 3ded311ff..a58cef6c0 100644 --- a/include/SDL3/SDL_log.h +++ b/include/SDL3/SDL_log.h @@ -45,16 +45,6 @@ extern "C" { #endif - -/** - * The maximum size of a log message prior to SDL 2.0.24. - * - * As of 2.0.24 there is no limit to the length of SDL log messages. - * - * \since This macro is available since SDL 3.0.0. - */ -#define SDL_MAX_LOG_MESSAGE 4096 - /** * The predefined log categories *