Want more features on Pastebin? Sign Up, it's FREE!
Guest

Arduino_New.cpp

By: a guest on Nov 17th, 2012  |  syntax: C++  |  size: 0.33 KB  |  views: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <new.h>
  2.  
  3. void * operator new(size_t size)
  4. {
  5.   return malloc(size);
  6. }
  7.  
  8. void operator delete(void * ptr)
  9. {
  10.   free(ptr);
  11. }
  12.  
  13. int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
  14. void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
  15. void __cxa_guard_abort (__guard *) {};
  16.  
  17. void __cxa_pure_virtual(void) {};
clone this paste RAW Paste Data