YoggieEngine/SandboxApplication/hello.lua
2021-09-29 19:14:27 +01:00

15 lines
321 B
Lua

-- Pack this into object file with ld: ld -r -b binary -o hello.o hello.lua
print ("Hello from lua")
print ("Lua code is capable of reading value set from C++", cppvar)
luavar = cppvar * 3
function myluafunction (times)
return string.rep("(-)", times)
end
function myfunction(arg)
return cppfunction(arg)
end