summaryrefslogtreecommitdiff
path: root/cv.h
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-06-26 10:08:58 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-06-29 00:20:59 -0700
commitbe49fd9f9c5b1a5632988410e5c38c5558a9794c (patch)
tree5135922eb581bccb63d0172d73f40d9f591ccaef /cv.h
parent7d82c9ce7c2bfa3a12c9a63cdbf316426bfee222 (diff)
downloadperl-be49fd9f9c5b1a5632988410e5c38c5558a9794c.tar.gz
Define cv_forget_slab under PL_OP_SLAB_ALLOC
Instead of using #ifndef every time we call cv_forget_slab, just define it as a no-op under PL_OP_SLAB_ALLOC.
Diffstat (limited to 'cv.h')
-rw-r--r--cv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cv.h b/cv.h
index e2644e1de1..f7b1b66f0a 100644
--- a/cv.h
+++ b/cv.h
@@ -191,6 +191,10 @@ See L<perlguts/Autoloading with XSUBs>.
/* Flags for newXS_flags */
#define XS_DYNAMIC_FILENAME 0x01 /* The filename isn't static */
+#ifdef PL_OP_SLAB_ALLOC
+# define cv_forget_slab(cv) NOOP
+#endif
+
/*
=head1 CV reference counts and CvOUTSIDE