Skip to content

Commit

Permalink
make feature versions restricted in the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
MESYETI committed Jun 1, 2024
1 parent 42effc7 commit 4ac56c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ int main(string[] args) {
removing = false;
next:
}
writeln(disabled);
writeln(versions);

auto preproc = new Preprocessor();
preproc.includeDirs = includeDirs;
Expand Down
2 changes: 1 addition & 1 deletion source/preprocessor.d
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Preprocessor {
string[] includeDirs;
string[] included;
string[] versions;
string[] restricted;
string[] restricted = ["IO", "File", "Time", "Exit"];

final void Error(Char, A...)(ErrorInfo error, in Char[] fmt, A args) {
ErrorBegin(error);
Expand Down
2 changes: 1 addition & 1 deletion std
Submodule std updated 1 files
+0 −3 cores/rm86.cal

0 comments on commit 4ac56c6

Please sign in to comment.