engage/generated/moon_sharp/interpreter/execution/vm/
callstackitem.rs1#[cfg(feature = "moon_sharp-interpreter-execution-vm-callstackitem-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/moon_sharp/interpreter/execution/vm/callstackitem/CallStackItem.md"))]
11 #[::unity::class(namespace = "MoonSharp.Interpreter.Execution.VM", name = "CallStackItem")]
12 #[parent(crate::system::object::Object)]
13 pub struct CallStackItem {
14 #[offset(16)]
15 #[rename(name = "Debug_EntryPoint")]
16 pub debug_entry_point: i32,
17 #[offset(24)]
18 #[rename(name = "Debug_Symbols")]
19 pub debug_symbols: ::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>,
20 #[offset(32)]
21 #[rename(name = "CallingSourceRef")]
22 pub calling_source_ref: crate::moon_sharp::interpreter::debugging::sourceref::SourceRef,
23 #[offset(40)]
24 #[rename(name = "ClrFunction")]
25 pub clr_function: crate::moon_sharp::interpreter::callbackfunction::CallbackFunction,
26 #[offset(48)]
27 #[rename(name = "Continuation")]
28 pub continuation: crate::moon_sharp::interpreter::callbackfunction::CallbackFunction,
29 #[offset(56)]
30 #[rename(name = "ErrorHandler")]
31 pub error_handler: crate::moon_sharp::interpreter::callbackfunction::CallbackFunction,
32 #[offset(64)]
33 #[rename(name = "ErrorHandlerBeforeUnwind")]
34 pub error_handler_before_unwind: crate::moon_sharp::interpreter::dynvalue::DynValue,
35 #[offset(72)]
36 #[rename(name = "BasePointer")]
37 pub base_pointer: i32,
38 #[offset(76)]
39 #[rename(name = "ReturnAddress")]
40 pub return_address: i32,
41 #[offset(80)]
42 #[rename(name = "LocalScope")]
43 pub local_scope: ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>,
44 #[offset(88)]
45 #[rename(name = "ClosureScope")]
46 pub closure_scope: crate::moon_sharp::interpreter::execution::closurecontext::ClosureContext,
47 #[offset(96)]
48 #[rename(name = "Flags")]
49 pub flags: crate::moon_sharp::interpreter::execution::vm::callstackitemflags::CallStackItemFlags,
50 }
51}
52
53#[cfg(feature = "moon_sharp-interpreter-execution-vm-callstackitem-types")]
54pub use __types::*;
55
56#[cfg(feature = "moon_sharp-interpreter-execution-vm-callstackitem")]
57#[doc(hidden)]
58#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
59mod __CallStackItem_unity_raw {
60 use super::*;
61 #[doc(hidden)]
62 #[allow(non_snake_case)]
63 pub mod __lookup_ctor {
64 use super::*;
65 static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
66 let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
67 ::unity::lookup::method_info_on_class_with_signature(<CallStackItem as ::unity::ClassIdentity>::class(), ".ctor", 0, param_types, false)
68 });
69 pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70 match &*METHOD {
71 ::core::result::Result::Ok(mi) => *mi,
72 ::core::result::Result::Err(e) => {
73 panic!(
74 "method lookup failed: {}
75::{}
76: {}
77",
78 <CallStackItem as ::unity::ClassIdentity>::NAME,
79 ".ctor",
80 e
81 )
82 },
83 }
84 }
85 }
86}
87
88#[cfg(feature = "moon_sharp-interpreter-execution-vm-callstackitem")]
89pub trait ICallStackItemMethods: ICallStackItem {
90 #[doc = "`.ctor()` overload"]
91 fn ctor(self) -> () {
92 unsafe {
93 let __receiver = <CallStackItem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94 ::unity::il2cpp_call!(__CallStackItem_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
95(CallStackItem)__receiver)
96 }
97 }
98}
99
100#[cfg(feature = "moon_sharp-interpreter-execution-vm-callstackitem")]
101impl<__T: ICallStackItem> ICallStackItemMethods for __T {}
102
103#[cfg(feature = "moon_sharp-interpreter-execution-vm-callstackitem")]
104impl CallStackItem {
105 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107 }
108}
109
110#[cfg(feature = "moon_sharp-interpreter-execution-vm-callstackitem")]
111impl CallStackItem {
112 #[doc = "`.ctor()` — no args"]
113 pub fn new() -> Self {
114 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
115 panic!(
116 "{}
117::{}
118 failed to instantiate",
119 ::core::stringify!(CallStackItem),
120 ::core::stringify!(new),
121 )
122 });
123 <Self as ICallStackItemMethods>::ctor(this);
124 this
125 }
126}
127
128#[cfg(feature = "moon_sharp-interpreter-execution-vm-callstackitem")]
129#[doc(hidden)]
130pub mod prelude {
131 pub use super::{CallStackItem, ICallStackItem, ICallStackItemMethods};
132 pub use crate::system::object::IObject;
133 #[cfg(feature = "system-object")]
134 pub use crate::system::object::IObjectMethods;
135}