mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
ops.h: rename OP_LOADT/OP_LOADF to OP_LOADTRUE/OP_LOADFALSE
Rename boolean load opcodes for consistency with LOADNIL/LOADSELF. Backward compatibility aliases are provided in opcode.h. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -13,6 +13,10 @@ enum mrb_insn {
|
||||
#undef OPCODE
|
||||
};
|
||||
|
||||
/* backward compatibility aliases */
|
||||
#define OP_LOADT OP_LOADTRUE
|
||||
#define OP_LOADF OP_LOADFALSE
|
||||
|
||||
#define OP_L_STRICT 1
|
||||
#define OP_L_CAPTURE 2
|
||||
#define OP_L_METHOD OP_L_STRICT
|
||||
|
||||
Reference in New Issue
Block a user