I am trying to import
Lua Lanes in the Pilot and I am always getting this error.
(IMG:
https://i.ibb.co/Hpk7wbH/lua-L-loadbuffer-failed.jpg)
luaL_loadbuffer() is contained in the
original lua5.1.dll, but I see it's removed in the
pilot's lua.5.1.dll.
-->
luaL_loadbuffer()Here is the code I'm trying to run:
Код
--lua
require("lua51-lanes")
package.path = "C:\\Program Files (x86)\\Lua\\5.1\\lua\\lanes.lua;" .. package.path
require("lanes")
f = lanes.gen( function( n) return 2 * n end)
a = f(1)
b = f(2)
log(a[1], b[1])
This code works when I use the original lua51.dll, instead of the one in the pilot.
I will attach
lanes.lua and
lua51-lanes.dll (both files im importing in the code).
How can I remove this error without changing the dlls?