summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-11-15 10:18:20 +0900
committerKoichi Sasada <ko1@atdot.net>2021-11-15 13:11:30 +0900
commit1ab6f2b4a232d41199268c6ae019941459ad5e33 (patch)
tree05c849a102e9b46da45d4e6cb7bd616ce9209a0a /builtin.h
parentfc456adc6a62d09b755243b8c8f190934b9965d6 (diff)
`rb_vm_lvar_exposed()` is PUREFUNC
This function is used in `rb_vm_lvar()` and this function can be unsed (generated into *.rbinc files automatically). `rb_vm_lvar()` is already declared as a PUREFUNC, but `rb_vm_lvar_exposed()` is not a PUREFUNC, so `rb_vm_lvar_exposed()` is remained even if it is unused.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5113
Diffstat (limited to 'builtin.h')
-rw-r--r--builtin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin.h b/builtin.h
index 5b4bda1e99..96339afdb5 100644
--- a/builtin.h
+++ b/builtin.h
@@ -56,6 +56,7 @@ static inline void rb_builtin_function_check_arity13(VALUE (*f)(rb_execution_con
static inline void rb_builtin_function_check_arity14(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
static inline void rb_builtin_function_check_arity15(VALUE (*f)(rb_execution_context_t *ec, VALUE self, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE, VALUE)){}
+PUREFUNC(VALUE rb_vm_lvar_exposed(rb_execution_context_t *ec, int index));
VALUE rb_vm_lvar_exposed(rb_execution_context_t *ec, int index);
// __builtin_inline!