This is normally statically linked in releases. Lua also needs some patching in Linux x86 to fix performance issues related to alignment, will need patching if we want fine-grained threading, and generally has an odd "build it yourself" design, so let's just add embed this one. (note: disable PCH for these files in VC, and don't add lua.c, luac.c, or print.c to the project)
8 lines
169 B
Lua
8 lines
169 B
Lua
-- an implementation of printf
|
|
|
|
function printf(...)
|
|
io.write(string.format(...))
|
|
end
|
|
|
|
printf("Hello %s from %s on %s\n",os.getenv"USER" or "there",_VERSION,os.date())
|