diff src/unwind-prot.h @ 7752:40c428ea3408

initial implementation of dbup and dbdown
author John W. Eaton <jwe@octave.org>
date Sun, 04 May 2008 03:42:19 -0400
parents 745a8299c2b5
children eb63fbe60fab
line wrap: on
line diff
--- a/src/unwind-prot.h
+++ b/src/unwind-prot.h
@@ -103,6 +103,8 @@
 
   static void save_int (int *ptr, int value);
 
+  static void save_size_t (size_t *ptr, size_t value);
+
   static void save_str (std::string *ptr, const std::string& value);
 
   static void save_ptr (void **ptr, void *value);
@@ -120,6 +122,9 @@
 #define unwind_protect_int(i) \
   unwind_protect::save_int (&(i), (i))
 
+#define unwind_protect_size_t(i) \
+  unwind_protect::save_size_t (&(i), (i))
+
 #define unwind_protect_str(s) \
   unwind_protect::save_str (&(s), (s))