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));
|
||||
} else {
|
||||
if ((nPass == 1) || (psym->nType & SYMF_IMPORT)) {
|
||||
/* 0x80 seems like a good default value... */
|
||||
return (0x80);
|
||||
} else {
|
||||
yyerror("'%s' not defined", s);
|
||||
if (nPass == 2) {
|
||||
/* Assume undefined symbols are imported from somewhere else */
|
||||
psym->nType |= SYMF_IMPORT;
|
||||
}
|
||||
/* 0x80 seems like a good default value... */
|
||||
return (0x80);
|
||||
}
|
||||
} else {
|
||||
if (nPass == 1) {
|
||||
|
||||
Reference in New Issue
Block a user