diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-02-13 15:10:16 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-02-20 11:46:54 +0900 |
commit | 75863554233a40f74d40138b7a88f07c010281a1 (patch) | |
tree | c4fe8ad166301976a9a5183e605ab65b9a7d16bb /include | |
parent | 49bb2e64ccca130f8e1a0b6ad36d442c1ad44ed7 (diff) | |
download | ruby-75863554233a40f74d40138b7a88f07c010281a1.tar.gz |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 8ff0e97f26..a97f87fc08 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -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 |