Allow passing a Rust closure to rb_iseq_callback (#6575)

This commit is contained in:
Takashi Kokubun 2022-10-18 09:07:11 -07:00 committed by GitHub
parent d67b6310d3
commit e7166c9bb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2022-10-18 16:07:41 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
8 changed files with 33 additions and 16 deletions

2
iseq.h
View file

@ -31,7 +31,7 @@ RUBY_EXTERN const int ruby_api_version[];
typedef struct rb_iseq_struct rb_iseq_t;
#define rb_iseq_t rb_iseq_t
#endif
typedef void (*rb_iseq_callback)(const rb_iseq_t *);
typedef void (*rb_iseq_callback)(const rb_iseq_t *, void *);
extern const ID rb_iseq_shared_exc_local_tbl[];