您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728
  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) {};