Skip to main content

luaur_code_gen/records/
standalone_code_gen_context.rs

1extern crate alloc;
2
3use crate::records::base_code_gen_context::BaseCodeGenContext;
4use crate::records::shared_code_allocator::SharedCodeAllocator;
5
6// Not Clone: a code-gen context owns a CodeAllocator (mmap'd executable
7// memory) and the shared allocator — non-copyable in C++ too.
8#[derive(Debug)]
9#[repr(C)]
10pub struct StandaloneCodeGenContext {
11    pub base: BaseCodeGenContext,
12    pub(crate) shared_allocator: SharedCodeAllocator,
13}