Skip to main content

Module opcode_names

Module opcode_names 

Source
Expand description

Opcode name table for debug/disassembly output.

Direct port of src/lopnames.h from Lua 5.4.7. Order must match the OpCode enum (src/lopcodes.h); ORDER OP invariant.

The C source is preserved inline as ` review.

Constants§

OPNAMES
Opcode names, indexed by OpCode as usize. ORDER OP — must match the OpCode enum order in lopcodes.h exactly.
OP_COUNT
Total number of opcodes. Must equal OpCode::Count as usize once the enum lands; trailer-required hook checks this constant exists.