Alex wrote:

I'm trying to compile the 'leaky' tool, but in leaky.h, I find:
#include "xpcom-config.h" // for CPP_NEW_THROW

I can't find this file anywhere in the tree.

It is generated when running ./configure for mozilla.


I can't delete it, because CPP_THROW_NEW is used on line 54 of the same file.
What is this for? Can I just delete CPP_THROW_NEW?

It specifies throw() (when the compiler supports it) to indicate to the compiler that new returns null instead of throwing an exception on failure... you can probably delete it for testing purposes, but be aware that you'll likely crash on OOM (out of memory) then.


_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to