Die4Ever / unrealscript-injector

UnrealScript Injector, used by Deus Ex Randomizer
https://discord.gg/daQVyAp2ds
GNU Affero General Public License v3.0
1 stars 1 forks source link

Precompiler constants #12

Open MQDuck opened 2 months ago

MQDuck commented 2 months ago

Since UnrealScript doesn't allow nonliteral constants in some places (like setting an array size), adding the ability to set a constant in a precompiler statement would sometimes allow for cleaner code.

Die4Ever commented 2 months ago

this would be pretty easy to do in compiler\preprocessor.py

but if you want them to work across files, you're gonna have issues with compilation order