master
Avril 4 years ago
parent 8f7110bf39
commit f486c061ed
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -68,7 +68,8 @@ macro_rules! enum_flags {
$( $(
#[allow(non_upper_case_globals)] pub const $const_name: $name = $name($value); #[allow(non_upper_case_globals)] pub const $const_name: $name = $name($value);
)* )*
pub const fn from_int(int: libc::c_int) -> Self pub const fn from_int(int: libc::c_int) -> Self
{ {
Self(int) Self(int)
@ -162,10 +163,10 @@ enum_flags!(GHOST_GLFlags {
}); });
enum_flags!(GHOST_DialogOptions enum_flags!(GHOST_DialogOptions
{ {
DialogWarning = 1<<0, DialogWarning = 1<<0,
DialogError = 1<<1, DialogError = 1<<1,
}); });
#[repr(C)] #[repr(C)]
#[derive(Debug, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)] #[derive(Debug, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]

Loading…
Cancel
Save