gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > How is the default new operator implemented in devkitARM?

#160749 - silent_code - Mon Jul 21, 2008 1:49 pm

Is it the new (std::nothrow) version? I guess so, as exceptions should be disabled (see below), right? Or is it just a malloc "alias"? :^o

Yeah, I know this question is kind of noobish. But I am very prying atm. :^)
... And, errr... I think it's important, especially for newcomers (as well as for everyone else), to know. ;^D

Short posts and links are very welcome. :^D

EDIT:
I did a little searching and found out, that the standard libraries are still exception enabled.

The standard makefiles also have the "-fno-exceptions" switch included, which means no exceptions in your program (you probably knew that from the name... yah. ;^p )

So, that's the core of the question: Is the default new (1) std::nothrow or (2) malloc? Or is it even like (3) std::nothrow == malloc?

Thanks!
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.