1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/// A procedural macro to generate diagnostic paths.
///
/// # Example
///
/// The macro can be used like this:
///
/// ```ignore
/// impl_diagnostic_paths! {
/// pub struct SolverDiagnostics {
/// PREPARE_CONSTRAINTS: "avian/solver/prepare_constraints",
/// INTEGRATE_VELOCITIES: "avian/solver/integrate_velocities",
/// // ...
/// }
/// }
/// ```
///
/// It expands to:
///
/// ```
/// pub struct SolverDiagnostics;
///
/// impl SolverDiagnostics {
/// pub const PREPARE_CONSTRAINTS: &'static bevy::diagnostic::DiagnosticPath = &bevy::diagnostic::DiagnosticPath::const_new("avian/solver/prepare_constraints");
/// pub const INTEGRATE_VELOCITIES: &'static bevy::diagnostic::DiagnosticPath = &bevy::diagnostic::DiagnosticPath::const_new("avian/solver/integrate_velocities");
/// // ...
/// }
/// ```
pub use impl_diagnostic_paths;