OpenDreamProject / OpenDream

A project for running games made in the DM programming language
MIT License
200 stars 109 forks source link

Const-fold some proc statements #1863

Open ike709 opened 3 months ago

ike709 commented 3 months ago

Const-folds if(FALSE) and do {} while(FALSE). I also confirmed that folding while(FALSE) is pointless since it never occurs.

To test this I compiled Paradise and confirmed that I can wander around without things being horribly broken, and there wasn't any runtime spam.

ike709 commented 2 months ago

Need to figure out some issues with scopes.