Skip to content

define with type cast not begin generated #1585

@hellow554

Description

@hellow554

Input C/C++ Header

#define FOO 3
#define BAR ((uint32_t)FOO)
#define BAZ ((uint32_t)5)

Bindgen Invocation

$ bindgen input.h

Actual Results

pub const FOO: u32 = 3;

Expected Results

pub const FOO: u32 = 3;
pub const BAR: u32 = 3;
pub const BAZ: u32 = 5

This seems to be related to the type cast. Not sure why the values won't be produced

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions