lua_assembler/formats/luac/view/mod.rs
1use crate::program::LuaVersion;
2
3pub mod to_luac;
4mod to_program;
5
6#[derive(Copy, Clone, Debug)]
7pub struct LuacView {
8 pub(crate) magic_head: [u8; 4],
9 pub(crate) lua_version: LuaVersion,
10}
11
12impl Default for LuacView {
13 fn default() -> Self {
14 Self { magic_head: [0; 4], lua_version: LuaVersion::Unknown }
15 }
16}