Import axe.lua 'In C: 'lua_State* luaVM = lua_open(0); Local luaVM:Byte Ptr = lua_open( ) 'In C: 'lua_baselibopen(luaVM); 'lua_iolibopen(luaVM); 'lua_strlibopen(luaVM); 'lua_mathlibopen(luaVM); luaopen_base(luaVM) luaopen_table(luaVM) luaopen_io(luaVM) luaopen_string(luaVM) luaopen_math(luaVM) Print "Enter Lua commands below. Enter a blank line to quit." Local outfile:TStream Local cmd:String Repeat outfile = WriteFile("temp.lua") cmd = Input ("> ") WriteLine outfile, cmd CloseFile(outfile) lua_dofile(luaVM,"temp.lua".ToCString()) FlushMem Until cmd="" DeleteFile("temp.lua") 'In C: 'lua_close(luaVM); lua_close(luaVM)
What needs to be changed to get this to work with current axe.Lua