Skip to content
Snippets Groups Projects
Select Git revision
  • b25d8835d37fee30d6156be2d33bee1f2b6f8ccb
  • master default protected
2 results

trustall.rs

Blame
  • trustall.rs 434 B
    use proc_collect::*;
    trustall! {
    
        fn hello() {
            println!("in trust hello");
            ext_hello();
        }
    
        #[entry]
        #[inline(always)]
        fn entry() {
            hello();
        }
    
        #[interrupt]
        fn i1() {
            println!("i1");
        }
    
        #[interrupt]
        fn i2() {
            println!("i2");
        }
    
        #[exception]
        fn exception() {
            println!("exc");
        }
    
    }
    
    fn ext_hello() {
        println!("ext_hello");
    }