luaur-vm 0.1.2

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::macros::lua_isnoneornil::lua_isnoneornil;

#[allow(non_snake_case)]
#[macro_export]
macro_rules! luaL_opt {
    ($L:expr, $f:expr, $n:expr, $d:expr) => {
        if $crate::macros::lua_isnoneornil::lua_isnoneornil!($L, $n) {
            $d
        } else {
            $f($L, $n)
        }
    };
}

pub use luaL_opt;