trezoa-program 3.2.3

Trezoa Program
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Return the remaining compute units the program may consume
#[inline]
pub fn trz_remaining_compute_units() -> u64 {
    #[cfg(target_os = "trezoa")]
    unsafe {
        crate::syscalls::trz_remaining_compute_units()
    }

    #[cfg(not(target_os = "trezoa"))]
    {
        crate::program_stubs::trz_remaining_compute_units()
    }
}