From cb8078f79fe6a3ead669c47cc0e71f542a1f7c1c Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Thu, 6 Jul 2023 17:50:23 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20use=5Fhandle!()=20permite=20declara?= =?UTF-8?q?r=20m=C3=A1s=20de=20un=20handle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagetop/src/util.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pagetop/src/util.rs b/pagetop/src/util.rs index 57eb75b5..5b695ee0 100644 --- a/pagetop/src/util.rs +++ b/pagetop/src/util.rs @@ -82,9 +82,12 @@ macro_rules! kv { #[macro_export] macro_rules! use_handle { - ( $HANDLE:ident ) => { - pub const $HANDLE: $crate::Handle = - $crate::util::handle(module_path!(), file!(), line!(), column!()); + ( $($HANDLE:ident),* $(,)? ) => { + $( + /// Public constant handle to represent a unique PageTop building element. + pub const $HANDLE: $crate::Handle = + $crate::util::handle(module_path!(), file!(), line!(), column!()); + )* }; }