Browse Source

Use __cxa_guard stuff on Teensy 2.0

main
PaulStoffregen 10 years ago
parent
commit
1812ad9023
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      teensy/new.cpp

+ 4
- 4
teensy/new.cpp View File

free(ptr); free(ptr);
} }


//int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
//void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
//void __cxa_guard_abort (__guard *) {};
int __cxa_guard_acquire(__guard *g) {return !*(char *)(g);};
void __cxa_guard_release (__guard *g) {*(char *)g = 1;};
void __cxa_guard_abort (__guard *) {};


//void __cxa_pure_virtual(void) {};
void __cxa_pure_virtual(void) {};



Loading…
Cancel
Save