Changes

Jump to: navigation, search

Obj-C Exceptions In Gecko

189 bytes added, 17:33, 18 February 2008
no edit summary
** <code>NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;</code>
** <code>NS_OBJC_END_TRY_ABORT_BLOCK_NSRESULT;</code>
 
* Used to wrap an entire method, returns the argument given to the END macro
** <code>NS_OBJC_BEGIN_TRY_ABORT_BLOCK_RETURN;</code>
** <code>NS_OBJC_END_TRY_ABORT_BLOCK_RETURN(_rv);</code>
We will probably add another block type that returns nsnull, for use with methods that return xpcom objects, we might add others as the need arises. For any other place where you would like to wrap an entire method, you'll have to use the first basic block macros and refactor code to correctly to place the return statement after the end macro. This means you'll also have to scope any variables used in the return statement correctly.
Confirm, emeritus
1,680
edits

Navigation menu