diff --git a/ChangeLog b/ChangeLog index 438f12f27e..88649bb133 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Aug 8 16:44:25 2013 Koichi Sasada + + * include/ruby/ruby.h: add old macro name `RUBY_EVENT_SWITCH'. + This macro name is obsolete because it is renamed to + RUBY_INTERNAL_EVENT_SWITCH, but it has compatibility problem + using this macro name like ruby-prof. + I want to remove this macro after ruby 2.1. + Thu Aug 8 15:37:53 2013 NAKAMURA Usaku * test/coverage/test_coverage.rb (TestCoverage#test_big_code): use `1' diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 575a2b61fc..9410c4c0e6 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1769,6 +1769,7 @@ int ruby_native_thread_p(void); /* internal events */ #define RUBY_INTERNAL_EVENT_SWITCH 0x040000 +#define RUBY_EVENT_SWITCH 0x040000 /* obsolete name. this macro is for compatibility */ /* 0x080000 */ #define RUBY_INTERNAL_EVENT_NEWOBJ 0x100000 #define RUBY_INTERNAL_EVENT_FREEOBJ 0x200000