mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
internal.c: move mrb_method_missing prototype to <mruby/internal.h>.
Ref #5776
This commit is contained in:
@@ -21,6 +21,7 @@ mrb_bool mrb_const_name_p(mrb_state*, const char*, mrb_int);
|
||||
mrb_value mrb_class_find_path(mrb_state*, struct RClass*);
|
||||
mrb_value mrb_mod_to_s(mrb_state *, mrb_value);
|
||||
void mrb_method_added(mrb_state *mrb, struct RClass *c, mrb_sym mid);
|
||||
mrb_noreturn void mrb_method_missing(mrb_state *mrb, mrb_sym name, mrb_value self, mrb_value args);
|
||||
#endif
|
||||
|
||||
/* debug */
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
#include <mruby/compile.h>
|
||||
#include <mruby/error.h>
|
||||
#include <mruby/proc.h>
|
||||
#include <mruby/presym.h>
|
||||
#include <mruby/string.h>
|
||||
#include <mruby/internal.h>
|
||||
#include <mruby/presym.h>
|
||||
|
||||
mrb_noreturn void mrb_method_missing(mrb_state *mrb, mrb_sym name, mrb_value self, mrb_value args);
|
||||
void mrb_proc_merge_lvar(mrb_state *mrb, mrb_irep *irep, struct REnv *env, int num, const mrb_sym *lv, const mrb_value *stack);
|
||||
mrb_value mrb_exec_irep(mrb_state *mrb, mrb_value self, struct RProc *p);
|
||||
const struct RProc *mrb_binding_extract_proc(mrb_state *mrb, mrb_value binding);
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "mruby/internal.h"
|
||||
#include "mruby/presym.h"
|
||||
|
||||
mrb_noreturn void mrb_method_missing(mrb_state *mrb, mrb_sym name, mrb_value self, mrb_value args);
|
||||
mrb_value mrb_exec_irep(mrb_state *mrb, mrb_value self, struct RProc *p);
|
||||
|
||||
// Defined by mruby-proc-ext on which mruby-method depends
|
||||
|
||||
@@ -90,8 +90,6 @@ mrb_gc_arena_shrink(mrb_state *mrb, int idx)
|
||||
#define CALL_MAXARGS 15
|
||||
#define CALL_VARARGS (CALL_MAXARGS<<4 | CALL_MAXARGS)
|
||||
|
||||
void mrb_method_missing(mrb_state *mrb, mrb_sym name, mrb_value self, mrb_value args);
|
||||
|
||||
static inline void
|
||||
stack_clear(mrb_value *from, size_t count)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user