Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mhightower83 committed Oct 15, 2024
1 parent 5653249 commit d303d01
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cores/esp8266/heap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,15 @@ uint32 IRAM_ATTR user_iram_memory_is_enabled(void)


///////////////////////////////////////////////////////////////////////////////
// heap allocator for "new" (ABI) - To support collecting OOM info, always defined
// Not normally needed, DEV_DEBUG_ABI_CPP is for module maintenance.
#if DEV_DEBUG_ABI_CPP
// In test Sketch, set abi_new_print=true/false around test function calls.
//
// Note that this code path is skipped when built with "C++ Exception: enabled"
// and the non-debug build option. For this build case, there is no need to
// collect OOM information. To use DEV_DEBUG_ABI_CPP, you must also define one
// of the following: MIN_ESP_OOM, DEBUG_ESP_OOM, DEBUG_ESP_PORT, or
// DEBUG_ESP_WITHINISR.
bool abi_new_print = false;
#define DEBUG_ABI_CPP_PRINTF ets_uart_printf

Expand Down Expand Up @@ -828,7 +834,9 @@ extern "C" void _dbg_abi_print_pstr(const char *function_name) {
#define DEBUG_ABI_CPP_PRINTF(...)
#endif


///////////////////////////////////////////////////////////////////////////////
// heap allocator for "new" (ABI) - To support collecting OOM info, always defined
//
#undef USE_HEAP_ABI_MEMALIGN
#undef USE_HEAP_ABI_MALLOC

Expand Down

0 comments on commit d303d01

Please sign in to comment.