mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Add test for DEF(@)
This commit is contained in:
@@ -285,6 +285,10 @@ uint32_t sym_isConstant(char *s)
|
|||||||
{
|
{
|
||||||
struct sSymbol *psym = sym_FindSymbol(s);
|
struct sSymbol *psym = sym_FindSymbol(s);
|
||||||
|
|
||||||
|
/* The @ symbol is handled differently */
|
||||||
|
if (psym == pPCSymbol)
|
||||||
|
return pCurrentSection->nOrg != -1;
|
||||||
|
|
||||||
return (psym && (psym->nType & SYMF_CONST));
|
return (psym && (psym->nType & SYMF_CONST));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user