i am trying Lua library by Dadido3 , i have try in x64 and x32 , on x64 this code works fine :
Code: Select all
XIncludeFile "Libraries\Lua\Lua.pbi"
UseModule Lua
Declare Debug_lua(*lua)
Procedure Debug_lua(*lua)
Debug PeekS(lua_tostring(*lua,1),-1,#PB_UTF8)
EndProcedure
Global *lua = luaL_newstate()
luaL_openlibs(*lua)
lua_register(*lua,"Debug",@Debug_lua())
luaL_dofile(*lua,GetCurrentDirectory()+"demo.lua")
lua_close(*lua)
http://prntscr.com/fprs4g