You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
356 B
22 lines
356 B
15 years ago
|
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: t -*-
|
||
|
|
||
|
//
|
||
|
// C++ runtime support not provided by Arduino
|
||
|
//
|
||
|
// Note: use new/delete with caution. The heap is small and
|
||
|
// easily fragmented.
|
||
|
//
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
void * operator new(size_t size)
|
||
|
{
|
||
|
return(calloc(size, 1));
|
||
|
}
|
||
|
|
||
|
void operator delete(void *p)
|
||
|
{
|
||
|
if (p)
|
||
|
free(p);
|
||
|
}
|