diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-03 09:06:44 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-03 09:06:44 +0000 |
commit | ebfbdcf4dffb423363965f6b41e574c69794db5f (patch) | |
tree | bb0961573ecafd77eb74d56dbd9b5ccb5fb6732b /re.c | |
parent | 46c4975d9c25f7f336a23bde080420c5ed29ab0e (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r-- | re.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -169,7 +169,7 @@ kcode_reset_option() } } -extern int rb_in_eval; +extern int rb_in_compile; static void reg_expr_str(str, s, len) @@ -262,10 +262,10 @@ reg_raise(s, len, err, re) { VALUE desc = reg_desc(s, len, re); - if (rb_in_eval) - Raise(eRegxpError, "%s: %s", err, RSTRING(desc)->ptr); - else + if (rb_in_compile) Error("%s: %s", err, RSTRING(desc)->ptr); + else + Raise(eRegxpError, "%s: %s", err, RSTRING(desc)->ptr); } static VALUE |