luaur-common 0.1.3

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::records::thread_context::ThreadContext;

#[allow(non_snake_case)]
#[derive(Debug)]
pub struct OptionalTailScope {
    pub(crate) context: *mut ThreadContext,
    pub(crate) token: u16,
    pub(crate) threshold: u32,
    pub(crate) microsec: u32,
    pub(crate) pos: u32,
}

impl Drop for OptionalTailScope {
    fn drop(&mut self) {
        // The implementation of the destructor is a separate item.
        // This file only defines the record structure.
    }
}