Changed Mantle's Lua C++ API from using several `luaopen_*` calls to
one `luaL_openlibs` call, since the former has been deprecated from the
release of Lua 5.1.
Signed-off-by: Tsung-Ju (Andy Lii) <usefulalgorithm@gmail.com>
}
/* balancer policies can use basic Lua functions */
- luaopen_base(L);
- luaopen_coroutine(L);
- luaopen_string(L);
- luaopen_math(L);
- luaopen_table(L);
- luaopen_utf8(L);
+ luaL_openlibs(L);
/* setup debugging */
lua_register(L, "BAL_LOG", dout_wrapper);