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 | dd8562f55059e6a6f26d209ca80b9187c25e33a1 (patch) | |
tree | 7b491b90059e26502eddc857754b70f695338b86 /vm_core.h | |
parent | a4786f758a4b241aad19bb524ec1b33783af4a83 (diff) | |
download | ruby-dd8562f55059e6a6f26d209ca80b9187c25e33a1.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
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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 : \ |