summaryrefslogtreecommitdiff
path: root/XSUB.h
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2005-11-19 19:14:42 +0000
committerSteve Peters <steve@fisharerojo.org>2005-11-19 19:14:42 +0000
commit891c2e08c4b0cd567c57c23427f594d70b2bced2 (patch)
tree5aae2202e4d553f963a5c486eba8126b544a4765 /XSUB.h
parent65e66c80cefadd5e860e8232c69fd1a11e6c5b92 (diff)
downloadperl-891c2e08c4b0cd567c57c23427f594d70b2bced2.tar.gz
Down with "warning: code has no effect"
p4raw-id: //depot/perl@26176
Diffstat (limited to 'XSUB.h')
-rw-r--r--XSUB.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/XSUB.h b/XSUB.h
index c38ccd2bf2..b3e586c8ae 100644
--- a/XSUB.h
+++ b/XSUB.h
@@ -320,7 +320,7 @@ Rethrows a previously caught exception. See L<perlguts/"Exception Handling">.
*/
#define DBM_setFilter(db_type,code) \
- { \
+ STMT_START { \
if (db_type) \
RETVAL = sv_mortalcopy(db_type) ; \
ST(0) = RETVAL ; \
@@ -334,9 +334,10 @@ Rethrows a previously caught exception. See L<perlguts/"Exception Handling">.
else \
db_type = newSVsv(code) ; \
} \
- }
+ } STMT_END
#define DBM_ckFilter(arg,type,name) \
+ STMT_START { \
if (db->type) { \
if (db->filtering) { \
croak("recursion detected in %s", name) ; \
@@ -361,7 +362,7 @@ Rethrows a previously caught exception. See L<perlguts/"Exception Handling">.
arg = sv_2mortal(arg); \
} \
SvOKp(arg); \
- }
+ } } STMT_END
#if 1 /* for compatibility */
# define VTBL_sv &PL_vtbl_sv