mirror of
https://github.com/lune-org/lune.git
synced 2025-04-10 21:40:54 +01:00
14 lines
243 B
Rust
14 lines
243 B
Rust
use mlua::prelude::*;
|
|
|
|
use super::context::*;
|
|
|
|
pub(super) fn require<'lua, 'ctx>(
|
|
lua: &'lua Lua,
|
|
ctx: &'ctx RequireContext,
|
|
name: &str,
|
|
) -> LuaResult<LuaMultiValue<'lua>>
|
|
where
|
|
'lua: 'ctx,
|
|
{
|
|
ctx.load_library(lua, name)
|
|
}
|