Merge pull request #157 from VVWVV/fix_emit_crash
Fixes crash with #emit and unused functions
This commit is contained in:
commit
55f0ac5272
@ -1330,7 +1330,8 @@ static int command(void)
|
|||||||
/* mark function as "used" */
|
/* mark function as "used" */
|
||||||
/* do NOT mark it as written as that has a different meaning for
|
/* do NOT mark it as written as that has a different meaning for
|
||||||
* functions (marks them as "should return a value") */
|
* functions (marks them as "should return a value") */
|
||||||
markusage(sym,uREAD);
|
if (sc_status!=statSKIP)
|
||||||
|
markusage(sym,uREAD);
|
||||||
} else {
|
} else {
|
||||||
outval(sym->addr,FALSE);
|
outval(sym->addr,FALSE);
|
||||||
/* mark symbol as "used", unknown whether for read or write */
|
/* mark symbol as "used", unknown whether for read or write */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user