summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-05-30 15:25:58 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-05-30 15:25:58 +0900
commit6bf1ee78c8cdc5c1b0265694c404ada0ec32cb28 (patch)
tree67d486cb32408c2a579796eca0bfa8401a4f7506 /include
parentf38e53eccacbd413bf567a97e6e0ec2941e2e85c (diff)
downloadmruby-6bf1ee78c8cdc5c1b0265694c404ada0ec32cb28.tar.gz
mruby-6bf1ee78c8cdc5c1b0265694c404ada0ec32cb28.zip
add internal function mrb_toplevel_run_keep() to keep stack contents; close #2326
Diffstat (limited to 'include')
-rw-r--r--include/mruby/compile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/compile.h b/include/mruby/compile.h
index 9af9c39c6..7f896e1fd 100644
--- a/include/mruby/compile.h
+++ b/include/mruby/compile.h
@@ -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;