From 731aa0d0a886bef3fc6a8591e706d7284a4f8cb8 Mon Sep 17 00:00:00 2001 From: shugo Date: Fri, 16 Nov 2007 07:29:44 +0000 Subject: * include/ruby/ruby.h: added some declarations for event hooks. * lib/profile.rb: set VM::InstructionSequence.compile_option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 56879760fc..a605cadb98 100644 --- a/vm_core.h +++ b/vm_core.h @@ -275,29 +275,6 @@ struct rb_iseq_struct { typedef struct rb_iseq_struct rb_iseq_t; -#define RUBY_EVENT_NONE 0x00 -#define RUBY_EVENT_LINE 0x01 -#define RUBY_EVENT_CLASS 0x02 -#define RUBY_EVENT_END 0x04 -#define RUBY_EVENT_CALL 0x08 -#define RUBY_EVENT_RETURN 0x10 -#define RUBY_EVENT_C_CALL 0x20 -#define RUBY_EVENT_C_RETURN 0x40 -#define RUBY_EVENT_RAISE 0x80 -#define RUBY_EVENT_ALL 0xff -#define RUBY_EVENT_VM 0x100 -#define RUBY_EVENT_SWITCH 0x200 - -typedef unsigned int rb_event_flag_t; -typedef void (*rb_event_hook_func_t)(rb_event_flag_t, VALUE data, VALUE, ID, VALUE klass); - -typedef struct rb_event_hook_struct { - rb_event_flag_t flag; - rb_event_hook_func_t func; - VALUE data; - struct rb_event_hook_struct *next; -} rb_event_hook_t; - #define GetVMPtr(obj, ptr) \ GetCoreDataFromValue(obj, rb_vm_t, ptr) -- cgit v1.2.3