diff options
| author | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-11 17:04:12 +0100 |
|---|---|---|
| committer | Stanisław Zagórowski <hasohasacz@gmail.com> | 2024-01-11 17:04:12 +0100 |
| commit | 0de7d2f2cc1856d01e810c76058d3c5f685a24af (patch) | |
| tree | 99ec50ef588a1c4c8e5ec4257ee5b7ef139019cb /src/luax/mod.rs | |
| parent | f45abfdf2150d8136e3da48e1daba5473030c0be (diff) | |
status codes
Diffstat (limited to 'src/luax/mod.rs')
| -rw-r--r-- | src/luax/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/luax/mod.rs b/src/luax/mod.rs index 2e6fe27..2bcc13d 100644 --- a/src/luax/mod.rs +++ b/src/luax/mod.rs @@ -1,3 +1,5 @@ +use rlua::Lua; + use crate::{error::LuaXError, Result}; mod lexer; @@ -97,3 +99,9 @@ pub fn preprocess_dir(path: &std::path::Path) -> Result<usize> { Ok(preprocessed) } + +pub fn prepare_lua() -> Result<Lua> { + let lua = Lua::new(); + + Ok(lua) +} |
