Question: Mathematical Operations Between Constants
#2

The preprocessor will simply change MAX_PLAYERS to 500 and MAX_VEHICLES to 2000 before compiling there is no optimization, the only benefit you get is the values can be changed in one place which will affect the code anywhere those defines are used. So really the only optimization is saving you coding time by changing one value instead of potentially hundreds.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)