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