- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcppfix.h
More file actions
Latest commit
25 lines (19 loc) · 392 Bytes
/
Copy pathcppfix.h
File metadata and controls
25 lines (19 loc) · 392 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndefcppfix
#definecppfix
//__extension__ typedef int __guard __attribute__((mode (__DI__)));
//void* operator new(size_t size);
void*operatornew[](size_tsize);
//void operator delete(void * ptr);
/*void* operator new(size_t size)
{
return malloc(size);
}*/
void*operatornew[](size_tsize)
{
returnmalloc(size);
}
/*void operator delete(void * ptr)
{
free(ptr);
}*/
#endif