cbindgen icon indicating copy to clipboard operation
cbindgen copied to clipboard

Support paths on literal expressions (constants)

Open emilio opened this issue 5 years ago • 0 comments

#589 adds a test that looks like:

/// cbindgen:enum-class=false
#[repr(C)]
pub enum E {
    V,
}
use E::*;

pub const C2: E = V;

It seems it should be doable to make cbindgen:enum-class not mandatory, if we support E::V as a proper literal.

emilio avatar Oct 05 '20 08:10 emilio