comparison lwasm/lwasm.h @ 474:74d0c394666e

Add "noexpandcond" pragma (cleans up listings) This pragma will suppress listing of conditionals and any statements that appear within a false conditional block.
author William Astle <lost@l-w.ca>
date Fri, 02 Nov 2018 21:07:50 -0600
parents 8181ddd707f1
children 469a130e7029
comparison
equal deleted inserted replaced
473:8181ddd707f1 474:74d0c394666e
107 PRAGMA_6309CONV = 1 << 23, // enable 6309 convenience ops 107 PRAGMA_6309CONV = 1 << 23, // enable 6309 convenience ops
108 PRAGMA_NEWSOURCE = 1 << 24, // don't use compatibility source format 108 PRAGMA_NEWSOURCE = 1 << 24, // don't use compatibility source format
109 PRAGMA_OPERANDSIZE = 1 << 25, // warn if operand size is bigger than required 109 PRAGMA_OPERANDSIZE = 1 << 25, // warn if operand size is bigger than required
110 PRAGMA_EMUEXT = 1 << 26, // enable emulator extensions 110 PRAGMA_EMUEXT = 1 << 26, // enable emulator extensions
111 PRAGMA_NOOUTPUT = 1 << 27, // disable object code output 111 PRAGMA_NOOUTPUT = 1 << 27, // disable object code output
112 PRAGMA_NOEXPANDCOND = 1 << 28, // hide conditionals and skipped output in listings
112 PRAGMA_CLEARBIT = 1 << 31 // reserved to indicate negated pragma flag status 113 PRAGMA_CLEARBIT = 1 << 31 // reserved to indicate negated pragma flag status
113 }; 114 };
114 115
115 enum 116 enum
116 { 117 {
305 struct symtabe *dptr; // symbol value to display 306 struct symtabe *dptr; // symbol value to display
306 307
307 int noexpand_start; // start of a no-expand block 308 int noexpand_start; // start of a no-expand block
308 int noexpand_end; // end of a no-expand block 309 int noexpand_end; // end of a no-expand block
309 int hideline; // set if we're going to hide this line on output 310 int hideline; // set if we're going to hide this line on output
311 int hidecond; // set if we're going to hide this line due to condition hiding
310 }; 312 };
311 313
312 enum 314 enum
313 { 315 {
314 symbol_flag_set = 1, // symbol was used with "set" 316 symbol_flag_set = 1, // symbol was used with "set"