summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-09-24 15:42:14 -0600
committerKarl Williamson <public@khwilliamson.com>2011-10-01 09:15:32 -0600
commit9ac792f4c8d84f4e7dc8fa8d1eb254f0389b3b38 (patch)
tree18f5ffba6ee488fb7f6df54d71445e0540b69bbb /regexec.c
parente3136cf9c75dca4f182c2a8c635f8df7d0870483 (diff)
downloadperl-9ac792f4c8d84f4e7dc8fa8d1eb254f0389b3b38.tar.gz
regexec.c: Add assertion check
This makes sure before there is a segfault that the is_() functions actually have the side effect that this expects.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index bdd5e3faed..e6d3fa41df 100644
--- a/regexec.c
+++ b/regexec.c
@@ -127,7 +127,7 @@
bool ok; \
ENTER; save_re_context(); \
ok=CAT2(is_utf8_,class)((const U8*)str); \
- assert(ok); LEAVE; } } STMT_END
+ assert(ok); assert(CAT2(PL_utf8_,class)); LEAVE; } } STMT_END
/* Doesn't do an assert to verify that is correct */
#define LOAD_UTF8_CHARCLASS_NO_CHECK(class) STMT_START { \