Detect circular includes #21

Open
opened 2023-08-03 02:47:52 -04:00 by j4nk · 1 comment
Owner

Currently, will recurse until hitting the recursion limit if there are circular includes.

Currently, will recurse until hitting the recursion limit if there are circular includes.
Author
Owner

This can easily be checked statically by scanning a file for includes, and recursively iterating over these includes, pushing to a stack. If the recursion hits a file that's already in the list, it can terminate with an error.

This can easily be checked statically by scanning a file for includes, and recursively iterating over these includes, pushing to a stack. If the recursion hits a file that's already in the list, it can terminate with an error.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: j4nk/md4tj#21
No description provided.