Merge branch 'master' of https://github.com/schungx/rhai
This commit is contained in:
commit
e6c6ed759f
@ -266,12 +266,21 @@ impl AST {
|
|||||||
&mut self.statements
|
&mut self.statements
|
||||||
}
|
}
|
||||||
/// Get the internal shared [`Module`] containing all script-defined functions.
|
/// Get the internal shared [`Module`] containing all script-defined functions.
|
||||||
|
#[cfg(not(feature = "internals"))]
|
||||||
#[cfg(not(feature = "no_module"))]
|
#[cfg(not(feature = "no_module"))]
|
||||||
#[cfg(not(feature = "no_function"))]
|
#[cfg(not(feature = "no_function"))]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub(crate) fn shared_lib(&self) -> Shared<Module> {
|
pub(crate) fn shared_lib(&self) -> Shared<Module> {
|
||||||
self.functions.clone()
|
self.functions.clone()
|
||||||
}
|
}
|
||||||
|
/// Get the internal shared [`Module`] containing all script-defined functions.
|
||||||
|
#[cfg(feature = "internals")]
|
||||||
|
#[cfg(not(feature = "no_module"))]
|
||||||
|
#[cfg(not(feature = "no_function"))]
|
||||||
|
#[inline(always)]
|
||||||
|
pub fn shared_lib(&self) -> Shared<Module> {
|
||||||
|
self.functions.clone()
|
||||||
|
}
|
||||||
/// Get the internal [`Module`] containing all script-defined functions.
|
/// Get the internal [`Module`] containing all script-defined functions.
|
||||||
#[cfg(not(feature = "internals"))]
|
#[cfg(not(feature = "internals"))]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
Loading…
Reference in New Issue
Block a user