@@ -36,8 +36,8 @@ extern "C" void __cxa_deleted_virtual(void) __attribute__ ((__noreturn__));
36
36
37
37
38
38
#if DEV_DEBUG_ABI_CPP
39
- extern " C" void _dbg_abi_print_pstr (const char * op, const char *function_name, const void * caller );
40
- #define DEBUG_NEW_OP_PRINTF () _dbg_abi_print_pstr(" new_op" , __PRETTY_FUNCTION__, NULL )
39
+ extern " C" void _dbg_abi_print_pstr (const char * op, const char *function_name);
40
+ #define DEBUG_NEW_OP_PRINTF () _dbg_abi_print_pstr(" new_op" , __PRETTY_FUNCTION__)
41
41
#else
42
42
#define DEBUG_NEW_OP_PRINTF () do { } while (false )
43
43
#endif
@@ -351,9 +351,10 @@ void* operator new[] (size_t size, const std::nothrow_t&)
351
351
#endif // #elif !defined(__cpp_exceptions) #if defined(UMM_ENABLE_MEMALIGN)
352
352
#else
353
353
/*
354
- Using weaklink C++ Exception handlers in libstdc. The "new" operators that
355
- express alignment should work through libstdc via memalign() in the umm_malloc
356
- library.
354
+ The C++ Exception handlers in libstdc are using weaklinks. The "new" operators
355
+ that express alignment should work through libstdc via memalign() in the
356
+ umm_malloc library. While not likely to ever be needed, the Sketch can replace
357
+ the C++ "Replaceable allocation functions."
357
358
358
359
Note that libstdc will fail errors in alignment value early. Thus, the
359
360
UMM_STATS_FULL alignment error count will be zero.
@@ -367,8 +368,8 @@ void* operator new[] (size_t size, const std::nothrow_t&)
367
368
#pragma message("Using weaklink C++ Exception handlers in libstdc")
368
369
#if UMM_ENABLE_MEMALIGN
369
370
#pragma message("The \"new\" operators that express alignment should work through libstdc via memalign() in the umm_malloc library.")
370
- // D >>
371
371
#endif
372
+ // D >>
372
373
373
374
#endif // #if defined(__cpp_exceptions)
374
375
0 commit comments