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
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: j4nk/md4tj#21
No description provided.