Teensy 4.1 core updated for 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.

19 lines
325B

  1. #include <new.h>
  2. void * operator new(size_t size)
  3. {
  4. return malloc(size);
  5. }
  6. void operator delete(void * ptr)
  7. {
  8. free(ptr);
  9. }
  10. int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
  11. void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
  12. void __cxa_guard_abort (__guard *) {};
  13. void __cxa_pure_virtual(void) {};