-- 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