Don't overwrite symbol when it's not allowed

When a user tried to overwrite a builtin symbol, it would change its
type despite the error, making the second try succeed. This is
problematic, as the location of a builtin symbol cannot be updated.
This commit is contained in:
Jakub Kądziołka
2020-10-12 12:27:06 +02:00
parent 71d8aeb4c2
commit b07aa00d5c
4 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
_NARG = 0
_NARG = 0

View File

@@ -0,0 +1,5 @@
ERROR: narg-overwrite.asm(1):
'_NARG' already defined as constant at <builtin>
ERROR: narg-overwrite.asm(2):
'_NARG' already defined as constant at <builtin>
error: Assembly aborted (2 errors)!

View File