Commit 1f704552 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

move respond_to and instance_of prototypes to mruby.h

parent 9b9b3456
...@@ -557,6 +557,9 @@ int mrb_sourceline(void); ...@@ -557,6 +557,9 @@ int mrb_sourceline(void);
void ruby_default_signal(int sig); void ruby_default_signal(int sig);
mrb_value mrb_attr_get(mrb_state *mrb, mrb_value obj, mrb_sym id); mrb_value mrb_attr_get(mrb_state *mrb, mrb_value obj, mrb_sym id);
int mrb_respond_to(mrb_state *mrb, mrb_value obj, mrb_sym mid);
int mrb_obj_is_instance_of(mrb_state *mrb, mrb_value obj, struct RClass* c);
/* memory pool implementation */ /* memory pool implementation */
typedef struct mrb_pool mrb_pool; typedef struct mrb_pool mrb_pool;
struct mrb_pool* mrb_pool_open(mrb_state*); struct mrb_pool* mrb_pool_open(mrb_state*);
......
...@@ -74,8 +74,6 @@ struct RClass *mrb_class_outer_module(mrb_state*, struct RClass *); ...@@ -74,8 +74,6 @@ struct RClass *mrb_class_outer_module(mrb_state*, struct RClass *);
struct RProc *mrb_method_search_vm(mrb_state*, struct RClass**, mrb_sym); struct RProc *mrb_method_search_vm(mrb_state*, struct RClass**, mrb_sym);
struct RProc *mrb_method_search(mrb_state*, struct RClass*, mrb_sym); struct RProc *mrb_method_search(mrb_state*, struct RClass*, mrb_sym);
int mrb_respond_to(mrb_state *mrb, mrb_value obj, mrb_sym mid);
int mrb_obj_is_instance_of(mrb_state *mrb, mrb_value obj, struct RClass* c);
struct RClass* mrb_class_real(struct RClass* cl); struct RClass* mrb_class_real(struct RClass* cl);
void mrb_obj_call_init(mrb_state *mrb, mrb_value obj, int argc, mrb_value *argv); void mrb_obj_call_init(mrb_state *mrb, mrb_value obj, int argc, mrb_value *argv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment