use_handle!() permite declarar más de un handle

This commit is contained in:
Manuel Cillero 2023-07-06 17:50:23 +02:00
parent 2b48ea2c80
commit cb8078f79f

View file

@ -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!());
)*
};
}