File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -798,9 +798,15 @@ uint32 IRAM_ATTR user_iram_memory_is_enabled(void)
798
798
799
799
800
800
// /////////////////////////////////////////////////////////////////////////////
801
- // heap allocator for "new" (ABI) - To support collecting OOM info, always defined
801
+ // Not normally needed, DEV_DEBUG_ABI_CPP is for module maintenance.
802
802
#if DEV_DEBUG_ABI_CPP
803
803
// In test Sketch, set abi_new_print=true/false around test function calls.
804
+ //
805
+ // Note that this code path is skipped when built with "C++ Exception: enabled"
806
+ // and the non-debug build option. For this build case, there is no need to
807
+ // collect OOM information. To use DEV_DEBUG_ABI_CPP, you must also define one
808
+ // of the following: MIN_ESP_OOM, DEBUG_ESP_OOM, DEBUG_ESP_PORT, or
809
+ // DEBUG_ESP_WITHINISR.
804
810
bool abi_new_print = false ;
805
811
#define DEBUG_ABI_CPP_PRINTF ets_uart_printf
806
812
@@ -828,7 +834,9 @@ extern "C" void _dbg_abi_print_pstr(const char *function_name) {
828
834
#define DEBUG_ABI_CPP_PRINTF (...)
829
835
#endif
830
836
831
-
837
+ // /////////////////////////////////////////////////////////////////////////////
838
+ // heap allocator for "new" (ABI) - To support collecting OOM info, always defined
839
+ //
832
840
#undef USE_HEAP_ABI_MEMALIGN
833
841
#undef USE_HEAP_ABI_MALLOC
834
842
You can’t perform that action at this time.
0 commit comments