?login_element?

Subversion Repositories NedoOS

Rev

Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download

  1.     lua pass1
  2.         pass = 0
  3.     endlua
  4.  
  5.     lua allpass
  6.         pass = pass + 1
  7.         sj.parse_code("DISPLAY \"lua pass: \", /D, "..pass)
  8.         if sj.file_exists("lua_file_exists.asm") then
  9.             sj.parse_line(" DISPLAY \"lua_file_exists.asm does exist.\"")
  10.         ; end
  11.         if not sj.file_exists("bogus.file") then
  12.             sj.error("bogus.file does not exist.")  -- show this one as error for fun
  13.         ; end
  14.     endlua
  15.  
  16.     lua pass3   ; wrong arguments
  17.         sj.file_exists("lua_file_exists.asm", 2)    -- not reported since Lua5.4 and LuaBridge 2.6 integration :(
  18.     endlua
  19.  
  20.     lua
  21.         assert(false == sj.file_exists(nil))
  22.     endlua
  23.