aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-13 08:43:32 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-13 08:43:32 +0000
commitffd9432d44e4aab4781bbe4f4245e22873b72ca2 (patch)
tree3382dcac44131e4c7e967d7aec3fe59a7a43df0f /iseq.h
parent55c801767aaac866d4825f1db74fd1e178b17a53 (diff)
downloadruby-ffd9432d44e4aab4781bbe4f4245e22873b72ca2.tar.gz
* vm_core.h (rb_call_info_kw_arg_bytes): move the definition
to iseq.h because this function is shared with iseq.c and compile.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/iseq.h b/iseq.h
index eca85cb9fd..315a73f3c7 100644
--- a/iseq.h
+++ b/iseq.h
@@ -12,6 +12,12 @@
#ifndef RUBY_COMPILE_H
#define RUBY_COMPILE_H
+static inline size_t
+rb_call_info_kw_arg_bytes(int keyword_len)
+{
+ return sizeof(rb_call_info_kw_arg_t) + sizeof(VALUE) * (keyword_len - 1);
+}
+
RUBY_SYMBOL_EXPORT_BEGIN
/* compile.c */