summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorGerard Goossen <gerard@tty.nl>2009-10-30 15:03:45 +0100
committerRafael Garcia-Suarez <rgs@consttype.org>2009-10-31 22:57:01 +0100
commitd3ab86beddf03171608c751a0b6585aeb1864b00 (patch)
tree9fb99218bb4324aaa4467f1b7e588f444c40406f /cop.h
parent941446f6f52eecff56982518624db4f64a5951fc (diff)
downloadperl-d3ab86beddf03171608c751a0b6585aeb1864b00.tar.gz
Add assertion to JMPENV_POP to assert that the jumplevel popped is the top level jumplevel
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cop.h b/cop.h
index 3633e9d353..93154c803c 100644
--- a/cop.h
+++ b/cop.h
@@ -114,6 +114,7 @@ typedef struct jmpenv JMPENV;
STMT_START { \
DEBUG_l(Perl_deb(aTHX_ "popping jumplevel was %p, now %p\n", \
(void*)PL_top_env, (void*)cur_env.je_prev)); \
+ assert(PL_top_env == &cur_env); \
PL_top_env = cur_env.je_prev; \
} STMT_END