loopcat/lib.rs
1#[macro_export]
2macro_rules! lööp {
3 ( $($statement:tt)* ) => {
4 loop { $( $statement )* }
5 };
6}
7
8#[cfg(test)]
9mod tests {
10 use crate::lööp;
11
12 #[test]
13 fn test_lööp() {
14 lööp! {
15 break;
16 };
17 }
18
19 #[test]
20 fn test_lööp_print() {
21 lööp! {
22 print!("lollmao");
23 break;
24 };
25 }
26}