Cyclic includes are easy to do by mistake and are helpful in some situations, but they cause genie to crash. Need to track includes in a list and skip over includes we've already performed.
Simple example:
a.cmd includes b.cmd which includes a.cmd
Real world example:
stow.cmd includes unload.cmd for when you try to stow a loaded bow but unload.cmd includes stow.cmd for after you have unloaded to clear hands.
Cyclic includes are easy to do by mistake and are helpful in some situations, but they cause genie to crash. Need to track includes in a list and skip over includes we've already performed.
Simple example: a.cmd includes b.cmd which includes a.cmd
Real world example: stow.cmd includes unload.cmd for when you try to stow a loaded bow but unload.cmd includes stow.cmd for after you have unloaded to clear hands.