✨ use_handle!() permite declarar más de un handle
This commit is contained in:
parent
2b48ea2c80
commit
cb8078f79f
1 changed files with 6 additions and 3 deletions
|
|
@ -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!());
|
||||
)*
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue