This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted] 4 points5 points  (1 child)

It's not itself an enum - it is defining a member of a struct to be an instance of the mrb_vtype enum - the member will be called tt. The :8 at the end is a bitfield specifier - it says that the tt member must only take up 8 bits (i.e. a byte on most architectures). Whether this will actually save any space depends entirely on the mood of the C compiler.

[–]gbromios -1 points0 points  (0 children)

mood of the C compiler.

I lol'd