mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-01 15:27:48 +00:00
Make INCBIN's length argument optional
INCBIN can now be used with just a start position to include everything from the start position until the end of the file.
This commit is contained in:
@@ -1073,7 +1073,12 @@ include : T_POP_INCLUDE string {
|
||||
;
|
||||
|
||||
incbin : T_POP_INCBIN string {
|
||||
out_BinaryFile($2);
|
||||
out_BinaryFile($2, 0);
|
||||
if (oFailedOnMissingInclude)
|
||||
YYACCEPT;
|
||||
}
|
||||
| T_POP_INCBIN string ',' const {
|
||||
out_BinaryFile($2, $4);
|
||||
if (oFailedOnMissingInclude)
|
||||
YYACCEPT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user