зеркало из https://github.com/github/ruby.git
* include/ruby/ruby.h (RB_GC_GUARD_PTR): get rid of removal by
optimization. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1bcd74de17
Коммит
24e1be7411
|
@ -1,3 +1,8 @@
|
|||
Sun May 9 23:53:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (RB_GC_GUARD_PTR): get rid of removal by
|
||||
optimization.
|
||||
|
||||
Sun May 9 23:07:53 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* proc.c (proc_dup): copy blockprocval. proc_dup is used by
|
||||
|
|
|
@ -420,7 +420,8 @@ static inline int rb_type(VALUE obj);
|
|||
#define RB_GC_GUARD_PTR(ptr) \
|
||||
__extension__ ({volatile VALUE *rb_gc_guarded_ptr = (ptr); rb_gc_guarded_ptr;})
|
||||
#else
|
||||
#define RB_GC_GUARD_PTR(ptr) (volatile VALUE *)(ptr)
|
||||
static inline volatile VALUE *rb_gc_guarded_ptr(volatile VALUE *ptr) {return ptr;}
|
||||
#define RB_GC_GUARD_PTR(ptr) rb_gc_guarded_ptr(ptr)
|
||||
#endif
|
||||
#define RB_GC_GUARD(v) (*RB_GC_GUARD_PTR(&(v)))
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче