luaur_code_gen/records/bytecode_block.rs
1#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2#[repr(C)]
3pub struct BytecodeBlock {
4 /// 'start' and 'finish' define an inclusive range of instructions which belong to the block
5 pub startpc: i32,
6 pub finishpc: i32,
7}
8
9impl Default for BytecodeBlock {
10 fn default() -> Self {
11 Self {
12 startpc: -1,
13 finishpc: -1,
14 }
15 }
16}