?login_element?

Subversion Repositories NedoOS

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download

  1.     lua
  2.         _pc("OPT reset")
  3.         sj.warning("[pass default] warning emitted from lua")
  4.         _pc("OPT --syntax=w")   ; -- treat warnings as errors
  5.         sj.warning("[pass default] second warning emitted from lua")
  6.     endlua
  7.  
  8.     lua pass1
  9.         _pc("OPT reset")
  10.         sj.warning("[pass 1] warning emitted from lua")
  11.         _pc("OPT --syntax=w")   ; -- treat warnings as errors
  12.         sj.warning("[pass 1] second warning emitted from lua")
  13.     endlua
  14.  
  15.     lua pass2
  16.         _pc("OPT reset")
  17.         sj.warning("[pass 2] warning emitted from lua")
  18.         _pc("OPT --syntax=w")   ; -- treat warnings as errors
  19.         sj.warning("[pass 2] second warning emitted from lua")
  20.     endlua
  21.  
  22.     lua pass3
  23.         _pc("OPT reset")
  24.         sj.warning("[pass 3] warning emitted from lua")
  25.         _pc("OPT --syntax=w")   ; -- treat warnings as errors
  26.         sj.warning("[pass 3] second warning emitted from lua")
  27.     endlua
  28.  
  29.     lua allpass
  30.         _pc("OPT reset")
  31.         sj.warning("[pass all] warning emitted from lua")
  32.         _pc("OPT --syntax=w")   ; -- treat warnings as errors
  33.         sj.warning("[pass all] second warning emitted from lua")
  34.     endlua
  35.  
  36.     lua pass3 ; wrong arguments
  37.         sj.warning("[nope!]", 2)
  38.     endlua
  39.  
  40.     lua pass3
  41.         sj.add_word(sj.error_count)     -- ; should be 0x0008
  42.         sj.add_byte(sj.warning_count)   -- ; should be 0x07
  43.         sj.add_word(0)
  44.         _pl("")         -- ; force emitted bytes in listing as silent/external
  45.     endlua
  46.