Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
234 B

  1. -- bare-bones luac in Lua
  2. -- usage: lua luac.lua file.lua
  3. assert(arg[1]~=nil and arg[2]==nil,"usage: lua luac.lua file.lua")
  4. f=assert(io.open("luac.out","wb"))
  5. assert(f:write(string.dump(assert(loadfile(arg[1])))))
  6. assert(f:close())