internal.c: move mrb_method_missing prototype to <mruby/internal.h>.

Ref #5776
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-08-15 17:24:08 +09:00
parent db20cbce53
commit 37dc1be74b
4 changed files with 3 additions and 5 deletions
+1
View File
@@ -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 */
+2 -2
View File
@@ -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);
-1
View File
@@ -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
-2
View File
@@ -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)
{