diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-16 13:05:46 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-03-16 13:05:46 +0000 |
commit | 1aeb9b93c2446b07eb20b9ac4518014b1276911a (patch) | |
tree | 52acd4c4c2dcb24f430bdbce33e04f5e403e05be /README.EXT | |
parent | feda16cbd48c1c60b304218e41985cd378382190 (diff) |
* eval.c (rb_add_event_hook): new function to add a hook function for
interpreter events.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'README.EXT')
-rw-r--r-- | README.EXT | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/README.EXT b/README.EXT index e5c4203832..aa9c27b51b 100644 --- a/README.EXT +++ b/README.EXT @@ -1001,6 +1001,32 @@ Starts execution of the interpreter. Specifies the name of the script ($0). +** Hooks for the Interpreter Events + + void rb_add_event_hook(rb_event_hook_func_t func, rb_event_t events) + +Adds a hook function for the specified interpreter events. +events should be Or'ed value of: + + RUBY_EVENT_LINE + RUBY_EVENT_CLASS + RUBY_EVENT_END + RUBY_EVENT_CALL + RUBY_EVENT_RETURN + RUBY_EVENT_C_CALL + RUBY_EVENT_C_RETURN + RUBY_EVENT_RAISE + RUBY_EVENT_ALL + +The definition of rb_event_hook_func_t is below: + + typedef void (*rb_event_hook_func_t)(rb_event_t event, NODE *node, + VALUE self, ID id, VALUE klass) + + int rb_remove_event_hook(rb_event_hook_func_t func) + +Removes the specified hook function. + Appendix C. Functions Available in extconf.rb These functions are available in extconf.rb: |