mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
comma at the end of enum is a C++11ism
Comma at the end of enum is allowed in C since C99. We can use them internally. However when it comes to extension libraries, they could be written in different C++ versions. We cannot assume sometihng. Public headers shall keep compatibilities.
This commit is contained in:
parent
49bb2e64cc
commit
7586355423
1 changed files with 1 additions and 1 deletions
|
@ -871,7 +871,7 @@ VALUE rb_obj_reveal(VALUE obj, VALUE klass); /* do not use this API to change kl
|
|||
|
||||
#define RVALUE_EMBED_LEN_MAX RVALUE_EMBED_LEN_MAX
|
||||
enum ruby_rvalue_flags {
|
||||
RVALUE_EMBED_LEN_MAX = 3,
|
||||
RVALUE_EMBED_LEN_MAX = 3
|
||||
};
|
||||
|
||||
#define ROBJECT_EMBED_LEN_MAX ROBJECT_EMBED_LEN_MAX
|
||||
|
|
Loading…
Add table
Reference in a new issue