mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ruby.h: define RClass only in C
* include/ruby/ruby.h (RClass): define only in C, `__attribute__` between `struct` and the name can't compile with g++. [ruby-core:70297] [Bug #11426] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a36367533c
commit
0eca22904b
2 changed files with 8 additions and 5 deletions
|
@ -1,7 +1,8 @@
|
|||
Tue Aug 18 11:40:51 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Aug 18 16:16:21 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/ruby.h (RClass): move `__attribute__` after the
|
||||
keyword `struct` for g++. [ruby-core:70297] [Bug #11426]
|
||||
* include/ruby/ruby.h (RClass): define only in C, `__attribute__`
|
||||
between `struct` and the name can't compile with g++.
|
||||
[ruby-core:70297] [Bug #11426]
|
||||
|
||||
Mon Aug 17 20:56:36 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
|
|
|
@ -825,10 +825,12 @@ struct RObject {
|
|||
ROBJECT(o)->as.heap.iv_index_tbl)
|
||||
|
||||
#define RClass RClassDeprecated
|
||||
struct DEPRECATED_TYPE(("RClass is internal use only"),
|
||||
RClass {
|
||||
#ifndef __cplusplus
|
||||
DEPRECATED_TYPE(("RClass is internal use only"),
|
||||
struct RClass {
|
||||
struct RBasic basic;
|
||||
});
|
||||
#endif
|
||||
#define RCLASS_SUPER(c) rb_class_get_superclass(c)
|
||||
#define RMODULE_IV_TBL(m) RCLASS_IV_TBL(m)
|
||||
#define RMODULE_CONST_TBL(m) RCLASS_CONST_TBL(m)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue