Skip to content

anonymous enumerations #29

@mischief

Description

@mischief

hi,

i'm trying to figure out why anonymous enumerations do not appear in ffiex anywhere after calling cdef.

for example,

ffi = require'ffiex'

-- example from /usr/include/net/if.h
ffi.cdef[[
enum
  {
    IFF_UP = 0x1,		/* Interface is up.  */
# define IFF_UP	IFF_UP
  };
]]

after running this, what lua code will print the value of IFF_UP as 1? i am confused because i cannot find IFF_UP in any of ffiex's tables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions