aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/new.h
blob: 50756f95318d75743ca1eb4c973f0467f904e57c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Header to define new/delete operators as they aren't provided by avr-gcc by default
   Taken from http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=59453 
 */

#ifndef NEW_H
#define NEW_H

#include <stdlib.h>

void * operator new(size_t size);
void * operator new[](size_t size);
void operator delete(void * ptr);
void operator delete[](void * ptr);

#endif