summaryrefslogtreecommitdiffabout
path: root/include
authorMichael Krelin <hacker@klever.net>2007-12-30 21:55:36 (UTC)
committer Michael Krelin <hacker@klever.net>2008-01-04 18:23:09 (UTC)
commit9e46475efea0f61bc588221d21d0d749c4eb7ab1 (patch) (side-by-side diff)
tree472a840a9df3209ebcb1909dc40b0b08a50bbb3d /include
parent40303fc819bc509f5593bf07c082f3d116023c18 (diff)
downloadlibopkele-9e46475efea0f61bc588221d21d0d749c4eb7ab1.zip
libopkele-9e46475efea0f61bc588221d21d0d749c4eb7ab1.tar.gz
libopkele-9e46475efea0f61bc588221d21d0d749c4eb7ab1.tar.bz2
exception fixes and enhancements
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'include') (more/less context) (ignore whitespace changes)
-rw-r--r--include/opkele/exception.h10
1 files changed, 9 insertions, 1 deletions
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 <exception>
# include <string>
@@ -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