summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-28 04:41:38 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-28 04:41:38 (GMT)
commit4d9f5482aea747e614a8d78b5e8ec114b023a768 (patch)
tree3075620060c592076e2df80b21949e7e1e0ed8cd /vm_core.h
parent74e5e61849e6062554adbc6887ce435826bcaef2 (diff)
NoMethodError#private_call?
* error.c (nometh_err_initialize): add private_call? parameter. * error.c (nometh_err_private_call_p): add private_call? method, to tell if the exception raised in private form FCALL or VCALL. [Feature #12043] * vm_eval.c (make_no_method_exception): append private_call? argument. * vm_insnhelper.c (ci_missing_reason): copy FCALL flag. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/vm_core.h b/vm_core.h
index 38de356..8b5e853 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -200,10 +200,11 @@ enum method_missing_reason {
MISSING_NOENTRY = 0x00,
MISSING_PRIVATE = 0x01,
MISSING_PROTECTED = 0x02,
- MISSING_VCALL = 0x04,
- MISSING_SUPER = 0x08,
- MISSING_MISSING = 0x10,
- MISSING_NONE = 0x20
+ MISSING_FCALL = 0x04,
+ MISSING_VCALL = 0x08,
+ MISSING_SUPER = 0x10,
+ MISSING_MISSING = 0x20,
+ MISSING_NONE = 0x40
};
struct rb_call_info {