Skip to content

Commit

Permalink
* method.h (END_OF_ENUMERATION): placeholder to put last comma.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Dec 13, 2012
1 parent 2b73ea1 commit cd9d004
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion method.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
#ifndef METHOD_H
#define METHOD_H

#ifndef END_OF_ENUMERATION
# ifdef __GNUC__
# define END_OF_ENUMERATION(key)
# else
# define END_OF_ENUMERATION(key) END_OF_##key##_PLACEHOLDER = 0
# endif
#endif

typedef enum {
NOEX_PUBLIC = 0x00,
NOEX_NOSUPER = 0x01,
Expand Down Expand Up @@ -46,7 +54,9 @@ typedef enum {
VM_METHOD_TYPE_OPTIMIZED, /* Kernel#send, Proc#call, etc */
VM_METHOD_TYPE_MISSING, /* wrapper for method_missing(id) */
VM_METHOD_TYPE_CFUNC_FRAMELESS,
VM_METHOD_TYPE_REFINED
VM_METHOD_TYPE_REFINED,

END_OF_ENUMERATION(VM_METHOD_TYPE)
} rb_method_type_t;

struct rb_call_info_struct;
Expand Down

0 comments on commit cd9d004

Please sign in to comment.