1
0
Fork 0
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:
卜部昌平 2020-02-13 15:10:16 +09:00
parent 49bb2e64cc
commit 7586355423

View file

@ -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