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