tolua_runtime
tolua_runtime copied to clipboard
tolua runtime library
测试代码: function ArrayTest(obj1, obj2) Debugger.Log("table.move test") local a1 = {} a1[1] = obj1 a1[2] = obj2 a2 = {} table.move(a1, 1, #a1, 1, a2) Debugger.Log("table.move test end:" .. #a2) end...
 在新版的msys2(msys2-x86_64-20200629.exe)上编译tolua_runtime会报上面的错误。 原因是新版的msys2中已经带有了inet_pton了,即inet_pton已经存在于mingw的ws2tcpip.h文件了,将luasocket/inet.c和luasocket.h中有关该函数相关声明与定义注释掉以后,可以编译通过。 https://docs.microsoft.com/zh-cn/windows/win32/api/ws2tcpip/nf-ws2tcpip-inet_pton luasocket仓库那边也提交过相关的Issue:https://github.com/diegonehab/luasocket/issues/298
支持ios模拟器
luajit在模拟器上运行不了,是汇编代码里的问题。只能用lua5.1.5。改了一下编译脚本,可以在编译时通过参数选择是用lua还是luajit。但是对模拟器只用lua5.1.5。已经分别在模拟器和真机测试过。 模拟器虽然慢,但是有时候还是方便一点的。
# 问题(Issue) 在tolua.c中,试图根据宏LUAJIT_VERSION对代码进行区分, 然而实际情况是,并未按预期走入我们所期望的分支。 在文件tolua_runtime\tolua.c中,代码如下: (In tolua.c, there is an attempt to differentiate the code based on the LUAJIT_VERSION macro. However, in reality, it does not follow the expected path....
tolua_runtime 已编译为ubuntu 但是还是报错
如题
根据鸿蒙编译第三方库说明,编译出来的libtolua.so 随机闪退。编译方法链接:https://gitee.com/swallowguo/tuanjie-engine-oh/blob/master/make_dependencies/guide/Linux%E7%8E%AF%E5%A2%83%E7%BC%96%E8%AF%91%E4%B8%89%E6%96%B9%E5%BA%93.md 案例5