luaur-bytecode-cli 0.1.3

Command-line Luau bytecode disassembler and inspector (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use core::ffi::c_char;
use core::ffi::CStr;

#[allow(non_snake_case)]
pub fn assertion_handler(
    expr: *const c_char,
    file: *const c_char,
    line: i32,
    _function: *const c_char,
) -> i32 {
    unsafe {
        let file_str = CStr::from_ptr(file).to_string_lossy();
        let expr_str = CStr::from_ptr(expr).to_string_lossy();

        println!("{}({}): ASSERTION FAILED: {}", file_str, line, expr_str);
    }
    1
}