From 6964bf6f7a2ff30d29bb92c79cd2fd88316c37d7 Mon Sep 17 00:00:00 2001 From: Intege-rs Date: Mon, 24 Feb 2025 20:42:43 -0500 Subject: [PATCH] allow trailing comma's --- sub/winu/src/importer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sub/winu/src/importer.rs b/sub/winu/src/importer.rs index 8544a93..4efe724 100644 --- a/sub/winu/src/importer.rs +++ b/sub/winu/src/importer.rs @@ -12,7 +12,7 @@ pub unsafe fn find_import_hashed(module_name: u64, func_name: u64) -> Option $rtype:ty)?; )* ) { +pub macro lazy_import ( $module:literal $($v:vis fn $name:ident($($pname:ident: $ptype:ty),* $(,)?) $(-> $rtype:ty)?; )* ) { $( #[allow(unused, non_snake_case)] #[inline(always)] $v fn $name($($pname: $ptype),*) $(-> $rtype)? {