This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

C API for Lua
#1
Hello,

i tried to use the Debug Library of lua which should be available in the standard lib.
But it seems the library is not available because I get nil.
Code:
LuaJIT 2.0.5 -- Copyright (C) 2005-2021 Mike Pall. https://luajit.org/
JIT: ON ARMv7 VFPv3 fold cse dce fwd dse narrow loop abc sink fuse
> print(debug)
nil
I tried to use a fresh compiled version of luajit and there the C API is available, but I canĀ“t use the precompiled lua modules anymore.
Code:
LuaJIT 2.1.0-beta3 -- Copyright (C) 2005-2022 Mike Pall. https://luajit.org/
JIT: ON ARMv7 VFPv3 fold cse dce fwd dse narrow loop abc sink fuse
> print(debug)
table: 0xb6f241b0
How can I use the debug library together with the precompiled modules like socket and apps ?

Thanks in advance!
Reply


Messages In This Thread
C API for Lua - by hummelsystemhaus - 01.06.2022, 12:46
RE: C API for Lua - by admin - 01.06.2022, 12:48
RE: C API for Lua - by hummelsystemhaus - 01.06.2022, 12:55
RE: C API for Lua - by admin - 02.06.2022, 05:56

Forum Jump: