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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user