floss: Update cb_variant to consume values
To keep callback enum variants clean, introduce a consuming conversion in the cb_variant! macro. This is useful when converting a pointer + size into a vector. Example: enum Foo { Bar(Vec<u32>), } cb_variant!(FooCb, bar_cb -> Foo::Bar, *const u32, usize -> _, { let _0 = ptr_to_vec(_0, _1); }); Bug: 216384386 Tag: #floss Test: Build on ChromeOS Change-Id: I3c110bbaf5120730b589dd3efa4b952e41d7291a
Loading
Please register or sign in to comment