add internal function mrb_toplevel_run_keep() to keep stack contents; close #2326

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-05-30 15:25:58 +09:00
parent f38e53ecca
commit 6bf1ee78c8
3 changed files with 14 additions and 4 deletions
+2
View File
@@ -35,6 +35,8 @@ void mrbc_context_free(mrb_state *mrb, mrbc_context *cxt);
const char *mrbc_filename(mrb_state *mrb, mrbc_context *c, const char *s);
void mrbc_partial_hook(mrb_state *mrb, mrbc_context *c, int (*partial_hook)(struct mrb_parser_state*), void*data);
mrb_value mrb_toplevel_run_keep(mrb_state*, struct RProc*, unsigned int);
/* AST node structure */
typedef struct mrb_ast_node {
struct mrb_ast_node *car, *cdr;