luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::type_aliases::lua_state::lua_State;
use luaur_vm::functions::lua_l_error_l::lua_l_error_l;

#[allow(non_snake_case)]
pub unsafe fn unsupported_function(L: *mut lua_State) -> core::ffi::c_int {
    let msg = "this function is not supported in type functions";
    let fmt = c"%s";
    lua_l_error_l(
        L as *mut luaur_vm::records::lua_state::lua_State,
        fmt.as_ptr(),
        core::format_args!("{}", msg),
    );
    0
}