mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Implement PRINT and PRINTLN (#672)
Fixes #669 Closes #368 Closes #624 Deprecate PRINTT, PRINTV, PRINTI, and PRINTF Default STRFMT("%f") to 5 fractional digits like "{f:}" Any use of string formatting will share this default
This commit is contained in:
@@ -9,7 +9,7 @@ INDEX = 1{ZERO_STR}{{FMT}:ZERO_NUM}
|
||||
; Defines ITEM_100 as "\"hundredth\""
|
||||
{NAME}_{d:INDEX} equs "\"hundredth\""
|
||||
; Prints "ITEM_100 is hundredth"
|
||||
PRINTT STRCAT("{NAME}_{d:INDEX} is ", {NAME}_{d:INDEX}, "\n")
|
||||
PRINTLN STRCAT("{NAME}_{d:INDEX}", " is ", {NAME}_{d:INDEX})
|
||||
; Purges ITEM_100
|
||||
PURGE {NAME}_{d:INDEX}
|
||||
ASSERT !DEF({NAME}_{d:INDEX})
|
||||
|
||||
Reference in New Issue
Block a user