feat: improve the docs of macro export_cycle_scope_names

Co-authored-by: jsign <jsign.uy@gmail.com>
This commit is contained in:
han0110
2026-02-08 14:16:19 +00:00
parent 25612458ee
commit 11baba072d

View File

@@ -199,11 +199,13 @@ pub fn check_cycle_scope_names(_names: &[&str]) {
/// Exports cycle scope names as symbols for `ziskemu` to display human-readable names.
///
/// Names must be listed in the same order as they were first used via
/// [`Platform::cycle_scope_start`].
/// The declared scope names must be declared in the order they are _executed_
/// in your code. Not doing so can dangerously name a scope incorrectly. Be
/// careful if you have lambda functions or conditionals since it is easy to
/// confuse the right order.
///
/// Enable feature `check-cycle-scope` to verify correctness at runtime
/// (panics on mismatch with expected output to copy-paste).
/// automatically (panics on mismatch with expected output to copy-paste).
#[macro_export]
macro_rules! export_cycle_scope_names {
($($name:ident),* $(,)?) => {{