luaur_vm/records/lua_debug.rs
1//! Node: `cxx:Record:Luau.VM:VM/include/lua.h:488:lua_debug`
2//! Source: `VM/include/lua.h:488-502` (hand-ported; was a `_private: ()`
3//! placeholder — the lying-record class)
4
5/// C++ `struct lua_Debug` — activation record. `LUA_IDSIZE` = 256
6/// (luaconf.h:71).
7#[allow(non_camel_case_types)]
8#[repr(C)]
9#[derive(Debug, Clone, Copy)]
10pub struct LuaDebug {
11 pub name: *const core::ffi::c_char, // (n)
12 pub what: *const core::ffi::c_char, // (s) `Lua', `C', `main', `tail'
13 pub source: *const core::ffi::c_char, // (s)
14 pub short_src: *const core::ffi::c_char, // (s)
15 pub linedefined: core::ffi::c_int, // (s)
16 pub currentline: core::ffi::c_int, // (l)
17 pub nupvals: u8, // (u) number of upvalues
18 pub nparams: u8, // (a) number of parameters
19 pub isvararg: core::ffi::c_char, // (a)
20 /// only valid in luau_callhook
21 pub userdata: *mut core::ffi::c_void,
22
23 pub ssbuf: [core::ffi::c_char; 256],
24}
25
26#[allow(non_camel_case_types)]
27pub type lua_Debug = LuaDebug;