comparison lwasm/pragma.c @ 513:1260b4eec5a5

Add **pragma which always suppresses listing itself Sometimes you don't want the listing polluted by a pragma statement so add **pragma which will always hide itself from the listing.
author William Astle <lost@l-w.ca>
date Mon, 24 Aug 2020 23:52:23 -0600
parents 74d0c394666e
children 6237505ee1dc
comparison
equal deleted inserted replaced
512:7e41d6123175 513:1260b4eec5a5
174 if (as->pragmas & PRAGMA_CC) 174 if (as->pragmas & PRAGMA_CC)
175 { 175 {
176 l->pragmas |= PRAGMA_CC; 176 l->pragmas |= PRAGMA_CC;
177 as->pragmas &= ~PRAGMA_CC; 177 as->pragmas &= ~PRAGMA_CC;
178 } 178 }
179 if (instab[l->insn].ops[3] == -2)
180 l -> pragmas |= PRAGMA_NOLIST;
179 lw_free(ps); 181 lw_free(ps);
180 } 182 }
181 183
182 static int pragma_stack_compare(input_stack_entry *e, void *d) 184 static int pragma_stack_compare(input_stack_entry *e, void *d)
183 { 185 {