From 9e46475efea0f61bc588221d21d0d749c4eb7ab1 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 30 Dec 2007 21:55:36 +0000 Subject: exception fixes and enhancements Signed-off-by: Michael Krelin --- (limited to 'include') diff --git a/include/opkele/exception.h b/include/opkele/exception.h index 8913665..36bd07a 100644 --- a/include/opkele/exception.h +++ b/include/opkele/exception.h @@ -24,9 +24,13 @@ */ # define OPKELE_CP_ CODEPOINT, /** + * open function-try-block + */ +# define OPKELE_FUNC_TRY try +/** * the simple rethrow of konforka-based exception */ -# define OPKELE_RETHROW catch(konforka::exception& e) { e.see(CODEPOINT); throw } +# define OPKELE_RETHROW catch(konforka::exception& e) { e.see(CODEPOINT); throw; } #else /* OPKELE_HAVE_KONFORKA */ # include # include @@ -44,6 +48,10 @@ */ # define OPKELE_CP_ /** + * the dummy define for the opening function-try-block + */ +# define OPKELE_FUNC_TRY +/** * the dummy define for the konforka-based rethrow of exception */ # define OPKELE_RETHROW -- cgit v0.9.0.2