mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +00:00
Revert "Implement INCLUDE_ONCE directive (#1481)"
This reverts commit 5f07095f6d.
This commit is contained in:
@@ -236,7 +236,6 @@
|
||||
%token POP_IF "IF"
|
||||
%token POP_INCBIN "INCBIN"
|
||||
%token POP_INCLUDE "INCLUDE"
|
||||
%token POP_INCLUDE_ONCE "INCLUDE_ONCE"
|
||||
%token POP_LOAD "LOAD"
|
||||
%token POP_MACRO "MACRO"
|
||||
%token POP_NEWCHARMAP "NEWCHARMAP"
|
||||
@@ -465,7 +464,6 @@ line_directive:
|
||||
| for
|
||||
| break
|
||||
| include
|
||||
| include_once
|
||||
| if
|
||||
// It's important that all of these require being at line start for `skipIfBlock`
|
||||
| elif
|
||||
@@ -1142,15 +1140,7 @@ export_def:
|
||||
|
||||
include:
|
||||
label POP_INCLUDE string endofline {
|
||||
fstk_RunInclude($3, INCLUDE_NORMAL);
|
||||
if (failedOnMissingInclude)
|
||||
YYACCEPT;
|
||||
}
|
||||
;
|
||||
|
||||
include_once:
|
||||
label POP_INCLUDE_ONCE string endofline {
|
||||
fstk_RunInclude($3, INCLUDE_ONCE);
|
||||
fstk_RunInclude($3, false);
|
||||
if (failedOnMissingInclude)
|
||||
YYACCEPT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user