From 45e58a23f67d0c4c16feeeaeb2f497b2080ade10 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Wed, 11 Nov 2026 01:48:12 +0000 Subject: [PATCH] Rename debug macro --- CHANGELOG.md | 6 ++++++ Makefile | 4 ++-- VERSION | 2 +- src/common/assert/assert.h | 2 +- src/oldnames.h | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61b3958..07b7fc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [3.4.0] - 2026-11-11 + +### Changed + +- `WP_DEBUG_ASSERT` macro to `WP_DEBUG_BUILD` + ## [3.3.1] - 2026-10-29 ### Fixed diff --git a/Makefile b/Makefile index b54fe84..8fc2e6a 100644 --- a/Makefile +++ b/Makefile @@ -34,9 +34,9 @@ override HEADER_INSTALL_CMD := scripts/header_install.sh ifeq ($(origin BUILD_FLAGS), undefined) ifeq ($(BUILD_TYPE),Debug) - BUILD_FLAGS += -g -fsanitize=address,undefined -DWP_DEBUG_ASSERT + BUILD_FLAGS += -g -fsanitize=address,undefined -DWP_DEBUG_BUILD else ifeq ($(BUILD_TYPE),RelWithDebInfo) - BUILD_FLAGS += -g -O2 -fsanitize=address,undefined -DWP_DEBUG_ASSERT + BUILD_FLAGS += -g -O2 -fsanitize=address,undefined -DWP_DEBUG_BUILD else ifeq ($(BUILD_TYPE),Release) BUILD_FLAGS += -O3 else diff --git a/VERSION b/VERSION index bea438e..1809198 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3.1 +3.4.0 diff --git a/src/common/assert/assert.h b/src/common/assert/assert.h index 5bad377..65de9cd 100644 --- a/src/common/assert/assert.h +++ b/src/common/assert/assert.h @@ -21,7 +21,7 @@ BEGIN_C_LINKAGE #define wpRuntimeAssert(EXPR, MSG) #endif -#ifdef WP_DEBUG_ASSERT +#ifdef WP_DEBUG_BUILD #define wpDebugAssert(EXPR, MSG) wpRuntimeAssert(EXPR, MSG) #else #define wpDebugAssert(EXPR, MSG) diff --git a/src/oldnames.h b/src/oldnames.h index cad291a..6605480 100644 --- a/src/oldnames.h +++ b/src/oldnames.h @@ -41,7 +41,7 @@ // --- Assert --- #define WAPP_NO_RUNTIME_ASSERT WP_NO_RUNTIME_ASSERT -#define WAPP_DEBUG_ASSERT WP_DEBUG_ASSERT +#define WAPP_DEBUG_ASSERT WP_DEBUG_BUILD // --- CPath ---