New; delete; pure virtual functions...


.... added in arduino 1.0.  new.h:

code: [select]
#include <stdlib.h>

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

__extension__ typedef int __guard __attribute__((mode (__di__)));

extern "c" int __cxa_guard_acquire(__guard *);
extern "c" void __cxa_guard_release (__guard *);
extern "c" void __cxa_guard_abort (__guard *);

extern "c" void __cxa_pure_virtual(void);


i'm curious...
- documented anywhere?
- why functions have declared extern "c"?  function name hashing?

seeing how have 2k of ram variables , stack don't think useful in arduino environment anyway...


Arduino Forum > Using Arduino > Programming Questions > New; delete; pure virtual functions...


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial