luaur-bytecode 0.1.4

Luau bytecode format and builder (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::records::bc_function::BcFunction;
use crate::records::bc_op::BcOp;
use crate::records::call_inliner::CallInliner;

pub fn inline_call(
    caller: &mut BcFunction,
    target: &mut BcFunction,
    call_op: BcOp,
    target_proto_id: u32,
) -> bool {
    let mut inliner = CallInliner::call_inliner(caller, target, call_op);
    inliner.inline_target(target_proto_id)
}