Compare commits
2 commits
6d3a07975d
...
05cf805c03
Author | SHA1 | Date | |
---|---|---|---|
05cf805c03 | |||
6e2e67f086 |
2 changed files with 5 additions and 3 deletions
|
@ -3,6 +3,8 @@
|
|||
#![allow(non_snake_case)]
|
||||
#![allow(unused_imports)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(clippy::complexity)]
|
||||
#![allow(clippy::style)]
|
||||
include!(concat!(env!("OUT_DIR"), "/glfw_vk_bindings.rs"));
|
||||
|
||||
pub fn VK_MAKE_VERSION(major: u32, minor: u32, patch: u32) -> u32 {
|
||||
|
|
|
@ -6,15 +6,15 @@ macro_rules! cleanup_func {
|
|||
$(var_pair: $orig_var:expr, $new_var:ident),*) => {
|
||||
$(let $new_var = $orig_var;)*
|
||||
|
||||
struct $name <T: Fn() -> ()> {
|
||||
struct $name <T: Fn()> {
|
||||
func: T,
|
||||
}
|
||||
impl<T> Drop for $name <T> where T: Fn() -> () {
|
||||
impl<T> Drop for $name <T> where T: Fn() {
|
||||
fn drop(&mut self) {
|
||||
(self.func)();
|
||||
}
|
||||
}
|
||||
impl<T> $name <T> where T: Fn() -> () {
|
||||
impl<T> $name <T> where T: Fn() {
|
||||
fn new(func: T) -> Self {
|
||||
Self {
|
||||
func,
|
||||
|
|
Loading…
Reference in a new issue