summaryrefslogtreecommitdiff
path: root/src/ffi/luau/lualib.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2023-04-12 23:23:34 +0100
committerAlex Orlenko <zxteam@protonmail.com>2023-04-12 23:23:34 +0100
commit15dc0e9f23c701f77d15459c9f32d88c11ed8dda (patch)
tree5955c1924fae7be33ec96e9a34039b5cc924fd78 /src/ffi/luau/lualib.rs
parent0c53e09e307aeab4d0ca59bb48b5782fa571e687 (diff)
downloadmlua-15dc0e9f23c701f77d15459c9f32d88c11ed8dda.zip
Move ffi module into mlua-sys crate
Diffstat (limited to 'src/ffi/luau/lualib.rs')
-rw-r--r--src/ffi/luau/lualib.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/ffi/luau/lualib.rs b/src/ffi/luau/lualib.rs
deleted file mode 100644
index 92b8642..0000000
--- a/src/ffi/luau/lualib.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-//! Contains definitions from `lualib.h`.
-
-use std::os::raw::c_int;
-
-use super::lua::lua_State;
-
-pub const LUA_COLIBNAME: &str = "coroutine";
-pub const LUA_TABLIBNAME: &str = "table";
-pub const LUA_OSLIBNAME: &str = "os";
-pub const LUA_STRLIBNAME: &str = "string";
-pub const LUA_BITLIBNAME: &str = "bit32";
-pub const LUA_UTF8LIBNAME: &str = "utf8";
-pub const LUA_MATHLIBNAME: &str = "math";
-pub const LUA_DBLIBNAME: &str = "debug";
-
-extern "C" {
- pub fn luaopen_base(L: *mut lua_State) -> c_int;
- pub fn luaopen_coroutine(L: *mut lua_State) -> c_int;
- pub fn luaopen_table(L: *mut lua_State) -> c_int;
- pub fn luaopen_os(L: *mut lua_State) -> c_int;
- pub fn luaopen_string(L: *mut lua_State) -> c_int;
- pub fn luaopen_bit32(L: *mut lua_State) -> c_int;
- pub fn luaopen_utf8(L: *mut lua_State) -> c_int;
- pub fn luaopen_math(L: *mut lua_State) -> c_int;
- pub fn luaopen_debug(L: *mut lua_State) -> c_int;
-
- // open all builtin libraries
- pub fn luaL_openlibs(L: *mut lua_State);
-}