lua icon indicating copy to clipboard operation
lua copied to clipboard

Templates expand to undefined procs

Open sid-code opened this issue 10 years ago • 1 comments

I was trying to use the Lua 5.2 bindings but ran into an error while trying to call lua_tostring. It turns out, this was because the template lua_tostring in lua52.nim expands to a call to an undefined proc lua_tolstring. In fact, many of the templates in that section expand to calls to undefined procs. Am I missing a different import or is there something wrong here?

sid-code avatar Feb 19 '15 01:02 sid-code

an oversight I'm working on fixing. The lua and luaL prefix need to be removed and the template should be a proc On Feb 18, 2015 7:38 PM, "sid-code" [email protected] wrote:

I was trying to use the Lua 5.2 bindings but ran into an error while trying to call lua_tostring. It turns out, this was because the template lua_tostring in lua52.nim expands to a call to an undefined proc lua_tolstring. In fact, all of the templates in that section expand to calls to undefined procs. Am I missing a different import or is there something wrong here?

— Reply to this email directly or view it on GitHub https://github.com/nim-lang/lua/issues/3.

fowlmouth avatar Feb 19 '15 02:02 fowlmouth