From f486c061ed1064aa0cfa03d947e8752981966acf Mon Sep 17 00:00:00 2001 From: Avril Date: Thu, 10 Sep 2020 13:22:02 +0100 Subject: [PATCH] jank hacks --- src/types.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/types.rs b/src/types.rs index 7c73770..c8e031e 100644 --- a/src/types.rs +++ b/src/types.rs @@ -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)]