diff options
Diffstat (limited to 'zluda_dump/src/side_by_side.rs')
-rw-r--r-- | zluda_dump/src/side_by_side.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/zluda_dump/src/side_by_side.rs b/zluda_dump/src/side_by_side.rs index 33954b8..11789ca 100644 --- a/zluda_dump/src/side_by_side.rs +++ b/zluda_dump/src/side_by_side.rs @@ -56,8 +56,10 @@ 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:path;)*) => {
#[derive(Default)]
+ #[allow(improper_ctypes)]
+ #[allow(improper_ctypes_definitions)]
struct CudaFnTable {
$($fn_name: DynamicFn<extern $abi fn ( $($arg_id : $arg_type),* ) -> $ret_type>),*
}
@@ -74,4 +76,4 @@ macro_rules! emit_cuda_fn_table { };
}
-cuda_function_declarations!(cuda_types, emit_cuda_fn_table, emit_cuda_fn_table, []);
+cuda_function_declarations!(emit_cuda_fn_table);
|