mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
rgbasm: let rgblink try to import undefined symbols
Manual imports are inconvenient and don't provide any functionality.
This commit is contained in:
@@ -364,12 +364,12 @@ sym_GetValue(char *s)
|
|||||||
}
|
}
|
||||||
return (getvaluefield(psym));
|
return (getvaluefield(psym));
|
||||||
} else {
|
} else {
|
||||||
if ((nPass == 1) || (psym->nType & SYMF_IMPORT)) {
|
if (nPass == 2) {
|
||||||
/* 0x80 seems like a good default value... */
|
/* Assume undefined symbols are imported from somewhere else */
|
||||||
return (0x80);
|
psym->nType |= SYMF_IMPORT;
|
||||||
} else {
|
|
||||||
yyerror("'%s' not defined", s);
|
|
||||||
}
|
}
|
||||||
|
/* 0x80 seems like a good default value... */
|
||||||
|
return (0x80);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (nPass == 1) {
|
if (nPass == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user