Fix `VM_VALIDATE_BYTEVECTOR' macro wrt. trailing semicolons.
authorLudovic Courtès <ludo@gnu.org>
Mon, 31 May 2010 22:42:58 +0000 (00:42 +0200)
committerLudovic Courtès <ludo@gnu.org>
Mon, 31 May 2010 22:42:58 +0000 (00:42 +0200)
* libguile/vm-i-scheme.c (VM_VALIDATE_BYTEVECTOR): Enclose in "do { }
  while (0)".

libguile/vm-i-scheme.c

index c72b2d4..2b0c782 100644 (file)
@@ -543,11 +543,16 @@ VM_DEFINE_INSTRUCTION (171, slot_set, "slot-set", 0, 3, 0)
 /*
  * Bytevectors
  */
-#define VM_VALIDATE_BYTEVECTOR(x)               \
-  if (SCM_UNLIKELY (!SCM_BYTEVECTOR_P (x)))     \
-    { finish_args = x;                          \
-      goto vm_error_not_a_bytevector;           \
-    }
+#define VM_VALIDATE_BYTEVECTOR(x)              \
+  do                                           \
+    {                                          \
+      if (SCM_UNLIKELY (!SCM_BYTEVECTOR_P (x)))        \
+       {                                       \
+         finish_args = x;                      \
+         goto vm_error_not_a_bytevector;       \
+       }                                       \
+    }                                          \
+  while (0)
 
 #define BV_REF_WITH_ENDIANNESS(stem, fn_stem)                           \
 {                                                                       \