Convert INTERRUPTABLE_EXTENT to use `do { ... } while (0)'.
authorTaylor R Campbell <campbell@mumble.net>
Fri, 29 Oct 2010 05:57:41 +0000 (05:57 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Fri, 29 Oct 2010 05:57:41 +0000 (05:57 +0000)
src/microcode/intext.h

index b8e657736d069971d24d63357b6cf67a12f2a600..4d7aa0c14c6974637b34646b2e4bca2bfcf9b1b6 100644 (file)
@@ -42,7 +42,7 @@ extern struct interruptable_extent * enter_interruptable_extent (void);
 extern int enter_interruption_extent (void);
 extern void exit_interruption_extent (void);
 
-#define INTERRUPTABLE_EXTENT(result, expression)                       \
+#define INTERRUPTABLE_EXTENT(result, expression) do                    \
 {                                                                      \
   int saved_errno;                                                     \
   struct interruptable_extent * INTERRUPTABLE_EXTENT_frame =           \
@@ -60,6 +60,6 @@ extern void exit_interruption_extent (void);
   saved_errno = errno;                                                 \
   dstack_set_position (current_interruptable_extent -> position);      \
   errno = saved_errno;                                                 \
-}
+} while (0)
 
 #endif /* SCM_INTEXT_H */