From cbab510997eb37888a1a0bbb641b237c73f7b6d3 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Fri, 19 Nov 2021 22:29:20 +0100 Subject: [PATCH] Berry disable debug features --- lib/libesp32/Berry/default/berry_conf.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/libesp32/Berry/default/berry_conf.h b/lib/libesp32/Berry/default/berry_conf.h index e11d6c3cb..597c3d65b 100644 --- a/lib/libesp32/Berry/default/berry_conf.h +++ b/lib/libesp32/Berry/default/berry_conf.h @@ -194,12 +194,19 @@ #define BE_USE_OS_MODULE 0 #define BE_USE_GLOBAL_MODULE 1 #define BE_USE_SYS_MODULE 0 -#define BE_USE_DEBUG_MODULE 1 +#define BE_USE_DEBUG_MODULE 0 #define BE_USE_GC_MODULE 1 -#define BE_USE_SOLIDIFY_MODULE 1 +#define BE_USE_SOLIDIFY_MODULE 0 #define BE_USE_INTROSPECT_MODULE 1 #define BE_USE_STRICT_MODULE 1 +#ifdef USE_BERRY_DEBUG + #undef BE_USE_DEBUG_MODULE + #undef BE_USE_SOLIDIFY_MODULE + #define BE_USE_DEBUG_MODULE 1 + #define BE_USE_SOLIDIFY_MODULE 1 +#endif // USE_BERRY_DEBUG + /* Macro: BE_EXPLICIT_XXX * If these macros are defined, the corresponding function will * use the version defined by these macros. These macro definitions