* include/ruby/ruby.h (FilePathValue): prevent from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a273dc9b16
commit
5a9f87f179
@ -1,4 +1,6 @@
|
||||
Tue May 26 05:38:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue May 26 05:39:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (FilePathValue): prevent from GC.
|
||||
|
||||
* include/ruby/ruby.h (NUM2LONG): added GCC specific optimization.
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user