This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| User32.* | |
| Kernel32.* | |
| WM_DESTROY | |
| IDC_ARROW | |
| BS_DEFPUSHBUTTON |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[macro_export] | |
| // This is a macro to use a match with boolean conditions, like a empty switch in Go. | |
| // Made by github.com/Esper89 in the Rust discord! | |
| macro_rules! cond { | |
| ($($cond:expr => $value:expr),* $(, _ => $dft:expr)? $(,)?) => { | |
| match () { | |
| $(() if $cond => $value,)* | |
| () => ($($dft)?), | |
| } | |
| }; |