mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add read barrier to value.p
API changes: - value.p must be accessed via mrb_value_p macro - value.p must be mutated via MRB_SET_VALUE_P macro
This commit is contained in:
@@ -44,7 +44,7 @@ struct RProc {
|
||||
#define MRB_PROC_STRICT 256
|
||||
#define MRB_PROC_STRICT_P(p) (((p)->flags & MRB_PROC_STRICT) != 0)
|
||||
|
||||
#define mrb_proc_ptr(v) ((struct RProc*)((v).value.p))
|
||||
#define mrb_proc_ptr(v) ((struct RProc*)(mrb_value_p(v)))
|
||||
|
||||
struct RProc *mrb_proc_new(mrb_state*, mrb_irep*);
|
||||
struct RProc *mrb_proc_new_cfunc(mrb_state*, mrb_func_t);
|
||||
|
||||
Reference in New Issue
Block a user