ruby-changes:40171
From: ko1 <ko1@a...>
Date: Sat, 24 Oct 2015 01:58:04 +0900 (JST)
Subject: [ruby-changes:40171] ko1:r52252 (trunk): * vm_core.h, vm_insnhelper.h: move definition of VMDEBUG
ko1 2015-10-24 01:57:58 +0900 (Sat, 24 Oct 2015) New Revision: 52252 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52252 Log: * vm_core.h, vm_insnhelper.h: move definition of VMDEBUG from vm_insnhelper.h to vm_core.h. Modified files: trunk/ChangeLog trunk/vm_core.h trunk/vm_insnhelper.h Index: ChangeLog =================================================================== --- ChangeLog (revision 52251) +++ ChangeLog (revision 52252) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Oct 24 01:56:01 2015 Koichi Sasada <ko1@a...> + + * vm_core.h, vm_insnhelper.h: move definition of VMDEBUG + from vm_insnhelper.h to vm_core.h. + Sat Oct 24 01:51:01 2015 Akinori MUSHA <knu@i...> * NEWS: [DOC] In the new safe call syntax, arguments are evaluated Index: vm_core.h =================================================================== --- vm_core.h (revision 52251) +++ vm_core.h (revision 52252) @@ -20,6 +20,28 @@ https://github.com/ruby/ruby/blob/trunk/vm_core.h#L20 #define VM_CHECK_MODE 0 #endif +/** + * VM Debug Level + * + * debug level: + * 0: no debug output + * 1: show instruction name + * 2: show stack frame when control stack frame is changed + * 3: show stack status + * 4: show register + * 5: + * 10: gc check + */ + +#ifndef VMDEBUG +#define VMDEBUG 0 +#endif + +#if 0 +#undef VMDEBUG +#define VMDEBUG 3 +#endif + #if VM_CHECK_MODE > 0 #define VM_ASSERT(expr) ( \ LIKELY(expr) ? (void)0 : \ Index: vm_insnhelper.h =================================================================== --- vm_insnhelper.h (revision 52251) +++ vm_insnhelper.h (revision 52252) @@ -12,28 +12,6 @@ https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.h#L12 #ifndef RUBY_INSNHELPER_H #define RUBY_INSNHELPER_H -/** - * VM Debug Level - * - * debug level: - * 0: no debug output - * 1: show instruction name - * 2: show stack frame when control stack frame is changed - * 3: show stack status - * 4: show register - * 5: - * 10: gc check - */ - -#ifndef VMDEBUG -#define VMDEBUG 0 -#endif - -#if 0 -#undef VMDEBUG -#define VMDEBUG 3 -#endif - extern VALUE ruby_vm_const_missing_count; #if VM_COLLECT_USAGE_DETAILS -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/