vmlet 0.0.0-reserved

Common data types for implementing a virtual machine
Documentation
//! Common data types for implementing a virtual machine
//!
//! # Example
//!
//! ```
//! use vmlet::add;
//!
//! assert_eq!(add(2, 3), 5);
//! ```

// TODO: Write a library.
#[must_use]
pub fn add(a: i32, b: i32) -> i32 {
    a + b
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_add() {
        assert_eq!(add(2, 3), 5);
    }
}