Skip to content
Snippets Groups Projects
lua.rs 226 B
Newer Older
use rlua::{Lua};

pub fn create_runtime(with_debug: bool) -> Lua {
    let runtime = if with_debug {
        unsafe { Lua::new_with_debug() }
    } else {
        Lua::new()
    };

    // Customise runtime here

    runtime
}