summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
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 */