Added a scope argument to the SymIsDef and SymIsDef functions, so it is

possible to request information for a specific scope.
Add an optional scope argument to the .DEFINED builtin function.
Change the long branch macros to look for symbols in local scope.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1574 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2002-11-22 01:45:00 +00:00
parent d7a5fbeb1a
commit 4dd4e76a88
9 changed files with 138 additions and 62 deletions

View File

@@ -176,7 +176,7 @@ static void DefineSymbol (const char* Def)
}
/* Check if have already a symbol with this name */
if (SymIsDef (SymName)) {
if (SymIsDef (SymName, SCOPE_ANY)) {
AbEnd ("`%s' is already defined", SymName);
}