diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-25 20:39:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-25 20:39:30 +0000 |
commit | 92aca12ccd159c0690944abb653c2e975828795f (patch) | |
tree | 43e5a4808e291ba341ecab29e5dc48f06f2228b9 /include/ruby | |
parent | 6e685627c7c30a22c6b4cfc9fe1dbe6fc422a8e3 (diff) | |
download | ruby-92aca12ccd159c0690944abb653c2e975828795f.tar.gz ruby-92aca12ccd159c0690944abb653c2e975828795f.tar.xz ruby-92aca12ccd159c0690944abb653c2e975828795f.zip |
* include/ruby/ruby.h (FilePathValue): prevent from GC.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 54018ab27..7da0b9e90 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -417,7 +417,7 @@ VALUE rb_str_export(VALUE); VALUE rb_str_export_locale(VALUE); VALUE rb_get_path(VALUE); -#define FilePathValue(v) ((v) = rb_get_path(v)) +#define FilePathValue(v) (RB_GC_GUARD(v) = rb_get_path(v)) VALUE rb_get_path_no_checksafe(VALUE); #define FilePathStringValue(v) ((v) = rb_get_path_no_checksafe(v)) |