From bab82d4c4366f5c24ce5f6bb039fcddd6e3fe6de Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Mon, 27 Jul 2026 00:02:58 -0400 Subject: [PATCH] S18: extend channel-pairing static_assert to all four UID words --- src/vst/vst_entry.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/vst/vst_entry.cpp b/src/vst/vst_entry.cpp index 29fc9ac..66151e5 100644 --- a/src/vst/vst_entry.cpp +++ b/src/vst/vst_entry.cpp @@ -44,11 +44,17 @@ // the couplable compile-time fact is the UID selection, not the namespace value; the // app_version_tests pin the namespace string per channel.) #if REASAMPLER_CHANNEL_IS_BETA -static_assert(REASAMPLER_ACTIVE_UID_1 == REASAMPLER_PROC_UID_BETA_1, +static_assert(REASAMPLER_ACTIVE_UID_1 == REASAMPLER_PROC_UID_BETA_1 && + REASAMPLER_ACTIVE_UID_2 == REASAMPLER_PROC_UID_BETA_2 && + REASAMPLER_ACTIVE_UID_3 == REASAMPLER_PROC_UID_BETA_3 && + REASAMPLER_ACTIVE_UID_4 == REASAMPLER_PROC_UID_BETA_4, "S18: a beta build must register the BETA class UID that pairs with the beta " "extension's ext-state namespace — the UID selection and the channel bit split"); #else -static_assert(REASAMPLER_ACTIVE_UID_1 == REASAMPLER_PROC_UID_1, +static_assert(REASAMPLER_ACTIVE_UID_1 == REASAMPLER_PROC_UID_1 && + REASAMPLER_ACTIVE_UID_2 == REASAMPLER_PROC_UID_2 && + REASAMPLER_ACTIVE_UID_3 == REASAMPLER_PROC_UID_3 && + REASAMPLER_ACTIVE_UID_4 == REASAMPLER_PROC_UID_4, "S18: a stable build must register the STABLE class UID that pairs with the " "stable ext-state namespace — the UID selection and the channel bit split"); #endif