core/vdbe: Add BeginSubrtn bytecode

Basically it does the very same thing of Null, but has a different name to differentiate its usage.
This commit is contained in:
Diego Reis 2025-04-09 10:56:37 -03:00
parent d2a1433345
commit 825aeb3f83
3 changed files with 19 additions and 0 deletions

View file

@ -1350,6 +1350,17 @@ pub fn insn_to_str(
0,
format!("goto {}", target_pc_when_reentered.to_debug_int()),
),
Insn::BeginSubrtn { dest, dest_end } => (
"BeginSubrtn",
*dest as i32,
dest_end.map_or(0, |end| end as i32),
0,
OwnedValue::build_text(""),
0,
dest_end.map_or(format!("r[{}]=NULL", dest), |end| {
format!("r[{}..{}]=NULL", dest, end)
}),
),
};
format!(
"{:<4} {:<17} {:<4} {:<4} {:<4} {:<13} {:<2} {}",