diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-08 10:56:52 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-08 10:56:52 +0000 |
commit | 3aea31c101ad28aa774a1c5fcbad5a0b53dc78be (patch) | |
tree | 33e7d390e6cce5a43dbfa23c2ac865ed4a850cf6 /include/ruby | |
parent | c9d01961f18d4fe5a3390322ba84af4a1b1ed6b5 (diff) | |
download | ruby-3aea31c101ad28aa774a1c5fcbad5a0b53dc78be.tar.gz |
* include/ruby/ruby.h: define USE_RGENGC_LOGGING_WB_UNPROTECT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/ruby.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 9410c4c0e6..abcc73b5b3 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1266,7 +1266,11 @@ void rb_gc_writebarrier_unprotect_promoted(VALUE obj); #define OBJ_WRITE(a, slot, b) rb_obj_write((VALUE)(a), (VALUE *)(slot), (VALUE)(b), __FILE__, __LINE__) #define OBJ_WRITTEN(a, oldv, b) rb_obj_written((VALUE)(a), (VALUE)(oldv), (VALUE)(b), __FILE__, __LINE__) -#if defined(USE_RGENGC_LOGGING_WB_UNPROTECT) && USE_RGENGC_LOGGING_WB_UNPROTECT +#ifndef USE_RGENGC_LOGGING_WB_UNPROTECT +#define USE_RGENGC_LOGGING_WB_UNPROTECT 0 +#endif + +#if USE_RGENGC_LOGGING_WB_UNPROTECT void rb_gc_unprotect_logging(void *objptr, const char *filename, int line); #define RGENGC_LOGGING_WB_UNPROTECT rb_gc_unprotect_logging #endif |