PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 line
440B

  1. #include "new.h"
  2. void * operator new(size_t size)
  3. {
  4. return malloc(size);
  5. }
  6. void * operator new[](size_t size)
  7. {
  8. return malloc(size);
  9. }
  10. void operator delete(void * ptr)
  11. {
  12. free(ptr);
  13. }
  14. void operator delete[](void * ptr)
  15. {
  16. free(ptr);
  17. }
  18. int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
  19. void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
  20. void __cxa_guard_abort (__guard *) {};
  21. void __cxa_pure_virtual(void) {};