YoggieEngine/SandboxApplication/hello.lua

15 lines
321 B
Lua
Raw Normal View History

2021-09-29 18:14:27 +00:00
-- 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