[win32] Another trivial patch:
Gurusamy Sarathy [Wed, 29 Oct 1997 21:45:26 +0000 (16:45 -0500)]
    Message-Id: <199710300245.VAA04244@aatma.engin.umich.edu>
    Subject: [PATCH] Re: Why doesn't XSRETURN have STMT_START/STMT_END brackets?

p4raw-id: //depot/win32/perl@310

XSUB.h

diff --git a/XSUB.h b/XSUB.h
index c7c3f6d..054b4cc 100644 (file)
--- a/XSUB.h
+++ b/XSUB.h
 
 #define dXSI32 I32 ix = XSANY.any_i32
 
-#define XSRETURN(off) stack_sp = stack_base + ax + ((off) - 1); return
+#define XSRETURN(off)                                  \
+    STMT_START {                                       \
+       stack_sp = stack_base + ax + ((off) - 1);       \
+       return;                                         \
+    } STMT_END
 
 /* Simple macros to put new mortal values onto the stack.   */
 /* Typically used to return values from XS functions.       */