-
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unlike C, these constants are not convenient for logging in macros, since they always report the same data (their location in the macro). Fixes #1068
- Loading branch information
Showing
13 changed files
with
77 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(7): | ||
'__LINE__' already defined as constant at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(8): | ||
'__LINE__' already defined as constant at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(11): | ||
'__LINE__' already defined at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(12): | ||
'__LINE__' already defined at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(16): | ||
Built-in symbol '__LINE__' cannot be purged | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(17): | ||
Built-in symbol '__LINE__' cannot be purged | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(20): | ||
'__LINE__' already defined at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(21): | ||
'__LINE__' already defined at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(24): | ||
'__LINE__' already defined as constant at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(25): | ||
'__LINE__' already defined as constant at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(28): | ||
'__LINE__' already defined at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(29): | ||
'__LINE__' already defined at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(32): | ||
'__LINE__' already defined as constant at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(33): | ||
'__LINE__' already defined as constant at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(36): | ||
'__LINE__' already defined as non-EQUS at <builtin> | ||
error: builtin-overwrite.asm(42) -> builtin-overwrite.asm::tickle(37): | ||
'__LINE__' already defined as non-EQUS at <builtin> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(7): | ||
'__UTC_YEAR__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(8): | ||
'__UTC_YEAR__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(11): | ||
'__UTC_YEAR__' already defined at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(12): | ||
'__UTC_YEAR__' already defined at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(16): | ||
Built-in symbol '__FILE__' cannot be purged | ||
Built-in symbol '__UTC_YEAR__' cannot be purged | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(17): | ||
Built-in symbol '__FILE__' cannot be purged | ||
Built-in symbol '__UTC_YEAR__' cannot be purged | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(20): | ||
'__FILE__' already defined at <builtin> | ||
'__UTC_YEAR__' already defined at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(21): | ||
'__FILE__' already defined at <builtin> | ||
'__UTC_YEAR__' already defined at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(24): | ||
'__FILE__' already defined as constant at <builtin> | ||
'__UTC_YEAR__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(25): | ||
'__FILE__' already defined as constant at <builtin> | ||
'__UTC_YEAR__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(28): | ||
'__FILE__' already defined at <builtin> | ||
'__UTC_YEAR__' already defined at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(29): | ||
'__FILE__' already defined at <builtin> | ||
'__UTC_YEAR__' already defined at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(32): | ||
'__FILE__' already defined as constant at <builtin> | ||
'__UTC_YEAR__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(33): | ||
'__FILE__' already defined as constant at <builtin> | ||
'__UTC_YEAR__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(36): | ||
Built-in symbol '__FILE__' cannot be redefined | ||
'__UTC_YEAR__' already defined as non-EQUS at <command-line> | ||
error: builtin-overwrite.asm(43) -> builtin-overwrite.asm::tickle(37): | ||
Built-in symbol '__FILE__' cannot be redefined | ||
'__UTC_YEAR__' already defined as non-EQUS at <command-line> | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(16): | ||
Built-in symbol '__ISO_8601_UTC__' cannot be purged | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(17): | ||
Built-in symbol '__ISO_8601_UTC__' cannot be purged | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(20): | ||
'__ISO_8601_UTC__' already defined at <command-line> | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(21): | ||
'__ISO_8601_UTC__' already defined at <command-line> | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(24): | ||
'__ISO_8601_UTC__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(25): | ||
'__ISO_8601_UTC__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(28): | ||
'__ISO_8601_UTC__' already defined at <command-line> | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(29): | ||
'__ISO_8601_UTC__' already defined at <command-line> | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(32): | ||
'__ISO_8601_UTC__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(33): | ||
'__ISO_8601_UTC__' already defined as constant at <command-line> | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(36): | ||
Built-in symbol '__ISO_8601_UTC__' cannot be redefined | ||
error: builtin-overwrite.asm(44) -> builtin-overwrite.asm::tickle(37): | ||
Built-in symbol '__ISO_8601_UTC__' cannot be redefined | ||
error: Assembly aborted (28 errors)! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
$9 | ||
$D | ||
$12 | ||
$16 | ||
$1A | ||
$1E | ||
$22 | ||
$26 | ||
builtin-overwrite.asm | ||
builtin-overwrite.asm | ||
builtin-overwrite.asm | ||
builtin-overwrite.asm | ||
builtin-overwrite.asm | ||
builtin-overwrite.asm | ||
$7C5 | ||
$7C5 | ||
$7C5 | ||
$7C5 | ||
$7C5 | ||
$7C5 | ||
$7C5 | ||
$7C5 | ||
1989-04-21T12:34:56Z | ||
1989-04-21T12:34:56Z | ||
1989-04-21T12:34:56Z | ||
1989-04-21T12:34:56Z | ||
1989-04-21T12:34:56Z | ||
1989-04-21T12:34:56Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,5 @@ endm | |
_RS += 100 | ||
println _RS | ||
|
||
__LINE__ *= 200 | ||
println __LINE__ | ||
|
||
UnDeFiNeD ^= 300 | ||
println UnDeFiNeD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
error: compound-assignment.asm(36): | ||
'__LINE__' already defined as constant at <builtin> | ||
error: compound-assignment.asm(39): | ||
Expected constant expression: 'UnDeFiNeD' is not constant at assembly time | ||
error: Assembly aborted (2 errors)! | ||
error: Assembly aborted (1 error)! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,5 +35,4 @@ $5 | |
$14 | ||
$A | ||
$64 | ||
$25 | ||
$0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
warning: file-sym.asm(1): [-Wobsolete] | ||
`__FILE__` is deprecated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
warn "main {__FILE__}" | ||
warn "main file" | ||
def v3 = v1 + v2 | ||
println "{d:v1} + {d:v2} = {d:v3}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
warning: preinclude.asm(0) -> preinclude.inc(1): [-Wuser] | ||
pre-include "preinclude.inc" | ||
pre-included file | ||
warning: preinclude.asm(1): [-Wuser] | ||
main "preinclude.asm" | ||
main file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
warn "pre-include {__FILE__}" | ||
warn "pre-included file" | ||
|
||
def v1 = 12 | ||
rept 3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters