Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)
vm_ifunc Struct Reference

IFUNC (Internal FUNCtion). More...

#include <imemo.h>

Data Fields

VALUE flags
VALUEsvar_lep
rb_block_call_func_t func
const void * data
struct vm_ifunc_argc argc

Detailed Description

IFUNC (Internal FUNCtion).

Bookkeeping for converting a C function and some closed-over data into a block passable to methods. Like Ruby Proc, but not directly accessible at Ruby level since this is an imemo. See rb_block_call() and friends.

Definition at line 86 of file imemo.h.

Field Documentation

◆ argc

struct vm_ifunc_argc vm_ifunc::argc

Definition at line 91 of file imemo.h.

◆ data

const void* vm_ifunc::data

Definition at line 90 of file imemo.h.

◆ flags

VALUE vm_ifunc::flags

Definition at line 87 of file imemo.h.

◆ func

rb_block_call_func_t vm_ifunc::func

Definition at line 89 of file imemo.h.

◆ svar_lep

VALUE* vm_ifunc::svar_lep

Definition at line 88 of file imemo.h.


The documentation for this struct was generated from the following file: