summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-26 01:09:09 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-26 01:09:09 +0900
commitbfd2a539edab8ef7935a75de8a6885d74ff9e8ef (patch)
treefce8fd6d21b944d892fc9a9e718f6afd16a79a7d /include
parentb042b951ce4003f00dc33cdac1c9d422e1a21d55 (diff)
downloadmruby-bfd2a539edab8ef7935a75de8a6885d74ff9e8ef.tar.gz
mruby-bfd2a539edab8ef7935a75de8a6885d74ff9e8ef.zip
add new function mrb_toplevel_run to prevent running through C function boudaries on exceptions; close #1942
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 17d4f1e19..9c63689a0 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -276,6 +276,7 @@ void mrb_close(mrb_state*);
mrb_value mrb_top_self(mrb_state *);
mrb_value mrb_run(mrb_state*, struct RProc*, mrb_value);
+mrb_value mrb_toplevel_run(mrb_state*, struct RProc*);
mrb_value mrb_context_run(mrb_state*, struct RProc*, mrb_value, unsigned int);
void mrb_p(mrb_state*, mrb_value);