mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-08-07 22:17:07 +02:00
dizzle: use procmacro in examples
This commit is contained in:
parent
7a0459756e
commit
be98e666f5
7 changed files with 53 additions and 61 deletions
|
|
@ -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)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue