From fb2067e7f89ffaf80247579c86ebc5ea48af6220 Mon Sep 17 00:00:00 2001 From: Riley King-Saunders Date: Thu, 10 Jul 2025 00:47:58 +1000 Subject: [PATCH] BASALT_ENABLE_ALLOC_RECORDS is now an optional define that is controllable by the end-user. If not defined before including a basalt header, it will be defined as 0 (disabled) --- include/basalt_defines.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/basalt_defines.h b/include/basalt_defines.h index 975cabe..df489ee 100644 --- a/include/basalt_defines.h +++ b/include/basalt_defines.h @@ -1,6 +1,8 @@ #pragma once -#define BASALT_ENABLE_ALLOC_RECORDS 1 +#ifndef BASALT_ENABLE_ALLOC_RECORDS +#define BASALT_ENABLE_ALLOC_RECORDS 0 +#endif #if defined(__clang__) || defined(__gcc__) #define STATIC_ASSERT(x,y) _Static_assert(x,y)