aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda/src/lib.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2024-12-09 16:53:33 +0000
committerAndrzej Janik <[email protected]>2024-12-09 16:53:33 +0000
commited98dca26d9a7b455b346672f204e93e919d7e56 (patch)
treec2f1be24c9bc75534da4537959c71811f5a0ec86 /zluda/src/lib.rs
parentc9c7a4d43287d2ecd4b9cf20772c579eb25ec480 (diff)
downloadZLUDA-ed98dca26d9a7b455b346672f204e93e919d7e56.tar.gz
ZLUDA-ed98dca26d9a7b455b346672f204e93e919d7e56.zip
Convert nvml project to the new macro
Diffstat (limited to 'zluda/src/lib.rs')
-rw-r--r--zluda/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/zluda/src/lib.rs b/zluda/src/lib.rs
index 8efbd26..e058bd7 100644
--- a/zluda/src/lib.rs
+++ b/zluda/src/lib.rs
@@ -1,7 +1,7 @@
pub(crate) mod r#impl;
macro_rules! unimplemented {
- ($($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;)*) => {
$(
#[cfg_attr(not(test), no_mangle)]
#[allow(improper_ctypes)]
@@ -14,7 +14,7 @@ macro_rules! unimplemented {
}
macro_rules! implemented {
- ($($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;)*) => {
$(
#[cfg_attr(not(test), no_mangle)]
#[allow(improper_ctypes)]
@@ -28,7 +28,7 @@ macro_rules! implemented {
}
macro_rules! implemented_in_function {
- ($($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;)*) => {
$(
#[cfg_attr(not(test), no_mangle)]
#[allow(improper_ctypes)]