Skip to main content

arith

Function arith 

Source
pub fn arith(
    state: &mut LuaState,
    op: ArithOp,
    p1: &LuaValue,
    p2: &LuaValue,
    res: StackIdx,
) -> Result<(), LuaError>
Expand description

Performs arithmetic for opcode op, writing the result to the stack slot res. Falls back to a binary tag-method if raw arithmetic is not possible.