cuprate_constants/
macros.rs
1#[allow(
3 clippy::allow_attributes,
4 unused_macros,
5 reason = "used in feature gated modules"
6)]
7macro_rules! monero_definition_link {
8 (
9 $commit:ident, $file_path:literal, $start:literal$(..=$end:literal)? ) => {
13 concat!(
14 "",
15 "[Original definition](https://github.com/monero-project/monero/blob/",
16 stringify!($commit),
17 "/src/",
18 $file_path,
19 "#L",
20 stringify!($start),
21 $(
22 "-L",
23 stringify!($end),
24 )?
25 ")."
26 )
27 };
28}
29
30#[allow(
31 clippy::allow_attributes,
32 unused_imports,
33 reason = "used in feature gated modules"
34)]
35pub(crate) use monero_definition_link;