?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. ; demonstration of work-around for current v1.18.2
  2.  
  3.   DEFINE OPT_FIELD3 Field3 DB 0
  4.  
  5.   STRUCT DATA
  6. Field1  DB 0
  7. Field2  DW 0
  8. OPT_FIELD3
  9. Field4  DB 1
  10.   ENDS
  11.   ASSERT 5 == DATA && 3 == DATA.Field3 && 4 == DATA.Field4
  12.  
  13.   ; redefine OPT_FIELD3 to empty define
  14.   DEFINE+ OPT_FIELD3
  15.  
  16.   STRUCT DATA2
  17. Field1  DB 2
  18. Field2  DW 3
  19. OPT_FIELD3
  20. Field4  DB 4
  21.   ENDS
  22.   ASSERT 4 == DATA2 && 3 == DATA2.Field4 && !EXIST(DATA2.Field3)
  23.  
  24.   DATA  {0,1,2,3}
  25.   DATA2 {4,5,6}
  26.