kashey пишет:
Ned Konz пишет:
kashey wrote:
Hi all.
When be included support new and delete functions support in avr-libc?


What do you need? Assuming you don't need the whole libstdc++ library, this will probably do what you need for typical C++ programs.


extern "C" {
#include <stddef.h>
#include <stdlib.h>
}

void *operator
new(size_t sz) throw()
{
  return malloc(sz);
}

void operator
delete(void *p)
{
    free(p);
}

extern "C" __cxa_pure_virtual();

void __cxa_pure_virtual()
{
   abort();
}


And what about calling Constructor/Destructor ?



--
Пожелания и 100 грамм принимаються, критика и маты в /dev/null




_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to