mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
include/mruby/value.h: remove assertion from mrb_obj_value()
The function was called too often, so that even slightest assertion may bother performance. The function is stable enough.
This commit is contained in:
@@ -359,8 +359,6 @@ mrb_obj_value(void *p)
|
||||
{
|
||||
mrb_value v;
|
||||
SET_OBJ_VALUE(v, (struct RBasic*)p);
|
||||
mrb_assert(p == mrb_ptr(v));
|
||||
mrb_assert(((struct RBasic*)p)->tt == mrb_type(v));
|
||||
return v;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user