diff src/unwind-prot.h @ 5854:68f8017ef077

[project @ 2006-06-12 15:54:27 by jwe]
author jwe
date Mon, 12 Jun 2006 15:54:27 +0000 (2006-06-12)
parents 8d7162924bd3
children c68896f193e3
line wrap: on
line diff
--- a/src/unwind-prot.h
+++ b/src/unwind-prot.h
@@ -125,6 +125,10 @@
   unwind_protect::save_ptr (reinterpret_cast<void **> (&(p)), \
                             reinterpret_cast<void *> (p))
 
+#define unwind_protect_fptr(p) \
+  unwind_protect::save_ptr (reinterpret_cast<void **> (&(p)), \
+                            FCN_PTR_CAST (void *, p))
+
 #define unwind_protect_const_ptr(p) \
   unwind_protect::save_ptr (const_cast<void **> (reinterpret_cast<const void **> (&(p))), \
                             const_cast<void *> (reinterpret_cast<const void *> (p)))