mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Implement INCLUDE_ONCE directive (#1481)
Identify files by (device, inode), not by path, so that symlinks, relative paths, case-insensitive paths, or other edge cases do not result in double includes.
This commit is contained in:
@@ -256,6 +256,7 @@ static std::unordered_map<std::string, int, CaseInsensitive, CaseInsensitive> ke
|
||||
{"INCHARMAP", T_(OP_INCHARMAP) },
|
||||
|
||||
{"INCLUDE", T_(POP_INCLUDE) },
|
||||
{"INCLUDE_ONCE", T_(POP_INCLUDE_ONCE) },
|
||||
{"PRINT", T_(POP_PRINT) },
|
||||
{"PRINTLN", T_(POP_PRINTLN) },
|
||||
{"EXPORT", T_(POP_EXPORT) },
|
||||
|
||||
Reference in New Issue
Block a user