?login_element?

Subversion Repositories NedoOS

Rev

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

  1. m1      MACRO   arg1?
  2.             DEFINE __check__ arg1?
  3.             LUA
  4.                 x = sj.get_define("__check__")
  5.                 if x ~= "1,2" then
  6.                     sj.error("["..x.."] differs from expected [1,2]")
  7.                 end
  8.             ENDLUA
  9.             UNDEFINE __check__
  10.         ENDM
  11.  
  12. m2      MACRO   arg1?
  13.             DEFINE __check__ arg1?
  14.             LUA
  15.                 x = sj.get_define("__check__")
  16.                 if x ~= " 3,4 " then
  17.                     sj.error("["..x.."] differs from expected [ 3,4 ]")
  18.                 end
  19.             ENDLUA
  20.             UNDEFINE __check__
  21.         ENDM
  22.  
  23. /* ok */    m1  <1,2>
  24. /* ok */    m1  <1,2> ; comment
  25. /* err */   m1  < 1,2 >
  26. /* err */   m1  < 1,2 > ; comment
  27.  
  28. /* err */   m2  <3,4>
  29. /* err */   m2  <3,4> ; comment
  30. /* ok */    m2  < 3,4 >
  31. /* ok */    m2  < 3,4 > ; comment
  32.  
  33.         ASSERT 4 == __ERRORS__
  34.