Mercurial > hg-old > index.cgi
comparison lwasm/pseudo.c @ 241:31231d1c87e6
Made ORG carp if used inside a mod/emod section
author | lost |
---|---|
date | Sun, 16 Aug 2009 04:13:29 +0000 |
parents | a58f49a77441 |
children | f9f01a499525 |
comparison
equal
deleted
inserted
replaced
240:b43e3e23583c | 241:31231d1c87e6 |
---|---|
42 int v, r; | 42 int v, r; |
43 | 43 |
44 if (as -> csect) | 44 if (as -> csect) |
45 { | 45 { |
46 register_error(as, l, 1, "ORG not allowed within sections"); | 46 register_error(as, l, 1, "ORG not allowed within sections"); |
47 return; | |
48 } | |
49 if (as -> inmod) | |
50 { | |
51 register_error(as, l, 1, "ORG not allowed within modules"); | |
47 return; | 52 return; |
48 } | 53 } |
49 | 54 |
50 if (as -> passnum != 1) | 55 if (as -> passnum != 1) |
51 { | 56 { |