Skip to content

Commit 9d389a1

Browse files
authored
Remove the use of __LINE__
Fixes #10 To summarise: `__LINE__` reports its *own* line, not the one the macro is invoked from. RGBDS v0.6.0 deprecated it for that reason, removing this also prevents the warning.
1 parent e08f48d commit 9d389a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

structs.asm

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
DEF STRUCTS_VERSION equs "3.0.0"
2727
MACRO structs_assert
28-
assert (\1), "rgbds-structs {STRUCTS_VERSION} bug on line {d:__LINE__}. Please report at https://github.com/ISSOtm/rgbds-structs, and share your code there!"
28+
assert (\1), "rgbds-structs {STRUCTS_VERSION} bug. Please report at https://github.com/ISSOtm/rgbds-structs, and share the above stack trace *and* your code there!"
2929
ENDM
3030

3131

0 commit comments

Comments
 (0)