?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.     LUA PASS3
  2.         f1()
  3.     ENDLUA
  4.     LUA PASS3
  5.         f2()
  6.     ENDLUA
  7.     LUA PASS1
  8.         -- few extra lines to make the assert line number 15
  9.         -- and one useless local var
  10.         --
  11.         local x = 1
  12.  
  13.         function f1()
  14.             sj.error("f1 asm:14 invoked from asm:2")       -- reports invokation, but at least correctly placed (asm:2) OK
  15.             assert(false, "f1 assert fail -> asm:15 invoked from asm:2")   -- FAIL asm:9
  16.         end
  17.  
  18.         -- one error invoked during pass1
  19.  
  20.         sj.error("asm:20 pass1")    -- OK
  21.     ENDLUA
  22.  
  23.     INCLUDELUA "./localising_error_line.lua"
  24.     INCLUDELUA "localising_error_line.lua"
  25.