rusteal-core 0.6.0

Safe Rust runtime for rusteal (object refs, lifecycle, dynamic calls)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub const LOG_DISPLAY: u8 = 0;
pub const LOG_WARNING: u8 = 1;
pub const LOG_ERROR: u8 = 2;

#[macro_export]
macro_rules! ulog {
    ($level:expr, $($arg:tt)*) => {{
        let msg = format!($($arg)*);
        let bytes = msg.as_bytes();

        unsafe {
            $crate::ffi_dispatch::logging_log($level, bytes.as_ptr(), bytes.len() as u32);
        }
    }};
}