lua 5.2 去掉了luaL_register功能,不能直接注册函数到一个全局table中了。 网上找了很多文章都是要导出到库,再引用库。 // my_math.c #include <lua.h> #include ...
確定! 回上一頁