Hi Carl,

Exceptions should be fine as long as you confine them to within the
library. Note that you do have to specifically enable exception
support when compiling (-fexceptions) and link to a C++ runtime that
supports exception. You have to choose to link to the static library
or shared library and that can get a bit tricky. See
docs/CPLUSPLUS-SUPPORT.html inside the NDK for details.

Cheers,
Jim


On 10/17/13 1:09 PM, Carl Wallace wrote:
> Hi again,
> 
> I've refactored the pcscd/libcoolkey code I had integrated into the
> browser into a browser extension and it's mostly happy.  I've returned to
> an issue I'd temporarily worked around before: use of exceptions in the
> libcoolkey library.  This page indicates exceptions will be treated as an
> abort: https://developer.mozilla.org/en-US/docs/Using_CXX_in_Mozilla_code.
>  I have a couple of questions:
> 
> 1) Does this apply to exceptions thrown and caught within a shared library?
> 2) Is there any recourse other than to remove exception usage?
> 
> Thanks.
> 
> 
> _______________________________________________
> mobile-firefox-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/mobile-firefox-dev
> 
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to