Skip to main content

luaur_code_gen/methods/
base_code_gen_context_init_header_functions.rs

1use crate::functions::init_header_functions_code_gen_a_64::init_header_functions as init_header_functions_a64;
2use crate::functions::init_header_functions_code_gen_x_64::init_header_functions as init_header_functions_x64;
3use crate::macros::codegen_target_a_64::CODEGEN_TARGET_A64;
4use crate::macros::codegen_target_x_64::CODEGEN_TARGET_X64;
5
6impl crate::records::base_code_gen_context::BaseCodeGenContext {
7    pub fn init_header_functions(&mut self) -> bool {
8        if CODEGEN_TARGET_X64 && !init_header_functions_x64(self) {
9            return false;
10        }
11
12        if CODEGEN_TARGET_A64 && !init_header_functions_a64(self) {
13            return false;
14        }
15
16        true
17    }
18}