Skip to content

Commit

Permalink
Add #file embedded files to makedep list
Browse files Browse the repository at this point in the history
  • Loading branch information
CloakerSmoker committed May 9, 2024
1 parent c39da80 commit e078ed0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 0 deletions.
Binary file modified build/freebsd_compiler.elf
Binary file not shown.
Binary file modified build/linux_compiler.elf
Binary file not shown.
Binary file modified build/windows_compiler.exe
Binary file not shown.
2 changes: 2 additions & 0 deletions src/compiler/Parser/Expression.rlx
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@
Token* FilePathToken := this->Consume(TOKEN_TYPE_STRING, "Expected \"<path>\" for `#File` directive")

this->Consume(TOKEN_TYPE_PUNCTUATION, PUNCTUATION_CLOSE_BRACKET, "Expected closing `]` after `#File` directive")

this->Config->DefineIncludedPath(FilePathToken->StringValue, GetAbsolutePath(FilePathToken->StringValue->Buffer))

i64 File := FileOpen(FilePathToken->StringValue->Buffer, FILE_READ)

Expand Down

0 comments on commit e078ed0

Please sign in to comment.