summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2022-09-05 22:01:03 +0100
committerAlex Orlenko <zxteam@protonmail.com>2022-09-05 23:13:06 +0100
commit050ac4f5ad05072faeda9708e82c10156447c629 (patch)
treed92626daaa451bcbf3481f0edf9eb977bf53faab
parent967cbb53b03def731a1d2ccbea2b0bd140564b9a (diff)
downloadmlua-050ac4f5ad05072faeda9708e82c10156447c629.zip
Add luaL_setfuncs to preserved functions
-rw-r--r--src/ffi/mod.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ffi/mod.rs b/src/ffi/mod.rs
index 09164b9..41a4729 100644
--- a/src/ffi/mod.rs
+++ b/src/ffi/mod.rs
@@ -79,9 +79,11 @@ pub(crate) fn keep_lua_symbols() {
symbols.push(lua_tocfunction as _);
symbols.push(luaL_loadstring as _);
symbols.push(luaL_openlibs as _);
- if cfg!(any(feature = "lua54", feature = "lua53", feature = "lua52")) {
+ #[cfg(any(feature = "lua54", feature = "lua53", feature = "lua52"))]
+ {
symbols.push(lua_getglobal as _);
symbols.push(lua_setglobal as _);
+ symbols.push(luaL_setfuncs as _);
}
}