luaur_compile_cli/records/
global_options.rs1use core::ffi::c_char;
2
3#[allow(non_snake_case)]
4#[derive(Debug, Clone, Copy)]
5pub struct GlobalOptions {
6 pub optimizationLevel: i32,
7 pub debugLevel: i32,
8 pub typeInfoLevel: i32,
9
10 pub vectorLib: *const c_char,
11 pub vectorCtor: *const c_char,
12 pub vectorType: *const c_char,
13
14 pub onlyParse: bool,
15 pub parseCst: bool,
16}
17
18impl Default for GlobalOptions {
19 fn default() -> Self {
20 Self {
21 optimizationLevel: 1,
22 debugLevel: 1,
23 typeInfoLevel: 0,
24 vectorLib: core::ptr::null(),
25 vectorCtor: core::ptr::null(),
26 vectorType: core::ptr::null(),
27 onlyParse: false,
28 parseCst: false,
29 }
30 }
31}
32
33#[allow(non_upper_case_globals)]
34pub static mut globalOptions: GlobalOptions = GlobalOptions {
35 optimizationLevel: 1,
36 debugLevel: 1,
37 typeInfoLevel: 0,
38 vectorLib: core::ptr::null(),
39 vectorCtor: core::ptr::null(),
40 vectorType: core::ptr::null(),
41 onlyParse: false,
42 parseCst: false,
43};