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