diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-23 16:57:58 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-23 16:57:58 +0000 |
commit | 9e1b06e17d27fb4ddf51e9244f205417e9c4dd5c (patch) | |
tree | 7b491b90059e26502eddc857754b70f695338b86 | |
parent | 1b5dce5a4e7e202f00ddc8bc82ae644ca119106d (diff) | |
download | ruby-9e1b06e17d27fb4ddf51e9244f205417e9c4dd5c.tar.gz |
* vm_core.h, vm_insnhelper.h: move definition of VMDEBUG
from vm_insnhelper.h to vm_core.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | vm_core.h | 22 | ||||
-rw-r--r-- | vm_insnhelper.h | 22 |
3 files changed, 27 insertions, 22 deletions
@@ -1,3 +1,8 @@ +Sat Oct 24 01:56:01 2015 Koichi Sasada <ko1@atdot.net> + + * 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@iDaemons.org> * NEWS: [DOC] In the new safe call syntax, arguments are evaluated @@ -20,6 +20,28 @@ #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 : \ diff --git a/vm_insnhelper.h b/vm_insnhelper.h index cad07da182..b70f731be1 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -12,28 +12,6 @@ #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 |