dizzle: use procmacro in examples

This commit is contained in:
facile pop culture reference 2026-07-25 07:13:28 +03:00
parent 7a0459756e
commit be98e666f5
7 changed files with 53 additions and 61 deletions

View file

@ -103,7 +103,10 @@ impl Tui {
/// Implement standard [main] entrypoint for TUI apps.
#[macro_export] macro_rules! tui_main {
($state:expr) => {
pub fn main () -> Usually<()> { tui_run_main(Arc::new(RwLock::new($state))) }
pub fn main () -> Usually<()> {
tui_setup_panic();
tui_run_main(Arc::new(RwLock::new($state)))
}
}
}