Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
Functions
proc.h File Reference

Internal header for Proc. More...

#include "ruby/ruby.h"
#include "ruby/st.h"

Go to the source code of this file.

Functions

VALUE rb_proc_location (VALUE self)
 
st_index_t rb_hash_proc (st_index_t hash, VALUE proc)
 
int rb_block_pair_yield_optimizable (void)
 
int rb_block_arity (void)
 
int rb_block_min_max_arity (int *max)
 
VALUE rb_block_to_s (VALUE self, const struct rb_block *block, const char *additional_info)
 
VALUE rb_callable_receiver (VALUE)
 
VALUE rb_func_proc_new (rb_block_call_func_t func, VALUE val)
 
VALUE rb_func_lambda_new (rb_block_call_func_t func, VALUE val, int min_argc, int max_argc)
 
VALUE rb_iseq_location (const struct rb_iseq_struct *iseq)
 
VALUE rb_sym_to_proc (VALUE sym)
 

Detailed Description

Internal header for Proc.

Author
Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org

Definition in file proc.h.

Function Documentation

◆ rb_block_arity()

int rb_block_arity ( void  )

◆ rb_block_min_max_arity()

int rb_block_min_max_arity ( int max)

◆ rb_block_pair_yield_optimizable()

int rb_block_pair_yield_optimizable ( void  )

◆ rb_block_to_s()

VALUE rb_block_to_s ( VALUE  self,
const struct rb_block block,
const char *  additional_info 
)

◆ rb_callable_receiver()

VALUE rb_callable_receiver ( VALUE  callable)

Definition at line 2787 of file proc.c.

References Qundef, rb_funcall(), rb_intern(), rb_obj_is_method(), and rb_obj_is_proc().

◆ rb_func_lambda_new()

VALUE rb_func_lambda_new ( rb_block_call_func_t  func,
VALUE  val,
int  min_argc,
int  max_argc 
)

Definition at line 742 of file proc.c.

References vm_ifunc::func, rb_cProc, and rb_vm_ifunc_new().

◆ rb_func_proc_new()

VALUE rb_func_proc_new ( rb_block_call_func_t  func,
VALUE  val 
)

Definition at line 735 of file proc.c.

References vm_ifunc::func, and rb_cProc.

◆ rb_hash_proc()

st_index_t rb_hash_proc ( st_index_t  hash,
VALUE  proc 
)

Definition at line 1433 of file proc.c.

References GetProcPtr, rb_block::proc, and rb_hash_uint.

◆ rb_iseq_location()

VALUE rb_iseq_location ( const struct rb_iseq_struct iseq)

◆ rb_proc_location()

VALUE rb_proc_location ( VALUE  self)

Definition at line 1387 of file proc.c.

References rb_proc_get_iseq().

Referenced by Init_Proc().

◆ rb_sym_to_proc()

VALUE rb_sym_to_proc ( VALUE  sym)