mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-29 12:15:22 +08:00
Merge branch 'next' into feat/check-pox-2-params
This commit is contained in:
@@ -646,3 +646,14 @@ macro_rules! impl_byte_array_rusqlite_only {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// Test hepler to get the name of the current function.
|
||||
#[macro_export]
|
||||
macro_rules! function_name {
|
||||
() => {
|
||||
stdext::function_name!()
|
||||
.rsplit_once("::")
|
||||
.expect("Failed to split current function name")
|
||||
.1
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user