diff options
| author | Masaki Muranaka <[email protected]> | 2013-01-07 15:28:05 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-01-07 15:28:05 +0900 |
| commit | 0f99322f27338d759b86551363a7275e53627a72 (patch) | |
| tree | cb986834e252136d90c85ab10c858244ff35b0de /src/vm.c | |
| parent | 83d91b935a1fd38289573aa84456e3d37901b83e (diff) | |
| download | mruby-0f99322f27338d759b86551363a7275e53627a72.tar.gz mruby-0f99322f27338d759b86551363a7275e53627a72.zip | |
gc.c: Enable DEBUG(x) if GC_DEBUG is defined.
vm.c: Enable DEBUG(x) if VM_DEBUG is defined.
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -49,7 +49,11 @@ The value below allows about 60000 recursive calls in the simplest case. */ #define MRB_STACK_MAX ((1<<18) - MRB_STACK_GROWTH) #endif - +#ifdef VM_DEBUG +# define DEBUG(x) (x) +#else +# define DEBUG(x) +#endif static inline void stack_copy(mrb_value *dst, const mrb_value *src, size_t size) |
