Alexandre Julliard : include: Update the comments about the Wine exception macros.

Alexandre Julliard julliard at winehq.org
Mon Jan 26 10:14:10 CST 2009


Module: wine
Branch: master
Commit: 58010a9750f3cc199fc59e7db6ac234ed411913d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=58010a9750f3cc199fc59e7db6ac234ed411913d

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 26 15:07:50 2009 +0100

include: Update the comments about the Wine exception macros.

---

 include/wine/exception.h |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/include/wine/exception.h b/include/wine/exception.h
index 7e0d5bc..007688f 100644
--- a/include/wine/exception.h
+++ b/include/wine/exception.h
@@ -37,7 +37,7 @@ extern "C" {
  * {
  *     do some stuff that can raise an exception
  * }
- * __EXCEPT(filter_func,param)
+ * __EXCEPT(filter_func)
  * {
  *     handle the exception here
  * }
@@ -49,14 +49,17 @@ extern "C" {
  * {
  *     do some stuff that can raise an exception
  * }
- * __FINALLY(finally_func,param)
+ * __FINALLY(finally_func)
  *
- * The filter_func must be defined with the WINE_EXCEPTION_FILTER
- * macro, and return one of the EXCEPTION_* code; it can use
- * GetExceptionInformation and GetExceptionCode to retrieve the
- * exception info.
+ * The filter_func and finally_func functions must be defined like this:
+ *
+ * LONG CALLBACK filter_func( PEXCEPTION_POINTERS __eptr ) { ... }
  *
- * The finally_func must be defined with the WINE_FINALLY_FUNC macro.
+ * void CALLBACK finally_func( BOOL __normal ) { ... }
+ *
+ * The filter function must return one of the EXCEPTION_* code; it can
+ * use GetExceptionInformation() and GetExceptionCode() to retrieve the
+ * exception info.
  *
  * Warning: inside a __TRY or __EXCEPT block, 'break' or 'continue' statements
  *          break out of the current block. You cannot use 'return', 'goto'




More information about the wine-cvs mailing list