diff options
author | Andrzej Janik <[email protected]> | 2024-12-09 16:53:33 +0000 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2024-12-09 16:53:33 +0000 |
commit | ed98dca26d9a7b455b346672f204e93e919d7e56 (patch) | |
tree | c2f1be24c9bc75534da4537959c71811f5a0ec86 /zluda_dump | |
parent | c9c7a4d43287d2ecd4b9cf20772c579eb25ec480 (diff) | |
download | ZLUDA-ed98dca26d9a7b455b346672f204e93e919d7e56.tar.gz ZLUDA-ed98dca26d9a7b455b346672f204e93e919d7e56.zip |
Convert nvml project to the new macro
Diffstat (limited to 'zluda_dump')
-rw-r--r-- | zluda_dump/src/lib.rs | 4 | ||||
-rw-r--r-- | zluda_dump/src/side_by_side.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/zluda_dump/src/lib.rs b/zluda_dump/src/lib.rs index 416772c..4834690 100644 --- a/zluda_dump/src/lib.rs +++ b/zluda_dump/src/lib.rs @@ -9,7 +9,7 @@ extern crate lazy_static; extern crate cuda_types; macro_rules! extern_redirect { - ($($abi:literal fn $fn_name:ident( $($arg_id:ident : $arg_type:ty),* ) -> $ret_type:path;)*) => { + ($($abi:literal fn $fn_name:ident( $($arg_id:ident : $arg_type:ty),* ) -> $ret_type:ty;)*) => { $( #[no_mangle] #[allow(improper_ctypes_definitions)] @@ -30,7 +30,7 @@ macro_rules! extern_redirect { } macro_rules! extern_redirect_with_post { - ($($abi:literal fn $fn_name:ident( $($arg_id:ident : $arg_type:ty),* ) -> $ret_type:path;)*) => { + ($($abi:literal fn $fn_name:ident( $($arg_id:ident : $arg_type:ty),* ) -> $ret_type:ty;)*) => { $( #[no_mangle] #[allow(improper_ctypes_definitions)] diff --git a/zluda_dump/src/side_by_side.rs b/zluda_dump/src/side_by_side.rs index 11789ca..678f026 100644 --- a/zluda_dump/src/side_by_side.rs +++ b/zluda_dump/src/side_by_side.rs @@ -56,7 +56,7 @@ impl CudaDynamicFns { }
macro_rules! emit_cuda_fn_table {
- ($($abi:literal fn $fn_name:ident( $($arg_id:ident : $arg_type:ty),* ) -> $ret_type:path;)*) => {
+ ($($abi:literal fn $fn_name:ident( $($arg_id:ident : $arg_type:ty),* ) -> $ret_type:ty;)*) => {
#[derive(Default)]
#[allow(improper_ctypes)]
#[allow(improper_ctypes_definitions)]
|