Garry's Mod Wiki

jit.util.funcbc

  number, number jit.util.funcbc( function func, number pos )

Description

Returns bytecode of a function at a position.

This function only works for Lua defined functions.

Arguments

1 function func
Function to retrieve bytecode from.
2 number pos
Position of the bytecode to retrieve.

Returns

1 number
bytecode instruction
2 number
bytecode opcode