Add or Remove Libraries 添加或移出库文件
This gives you the flexibility to add libraries at run time while still only having to update the information once.
这使您具有在运行时只需要更新信息一次就可以增加库的灵活性。
You also find out where to add libraries for additional plug-ins or dependencies you want to use with your Shale code.
您也会知晓在何处添加用于附加插件或想要和Shale代码一起使用的依赖项的库。
All states are initially empty; you add libraries of functions to the state using luaopen_... , as shown in Lines 10 through 14.
所有的状态最初都是空的;我们可以使用luaopen _…将函数库添加到状态中,如第10行到第14行所示。
应用推荐