Original Post
I''m curious to know what are the advantages and disadvantages of using const versus #define to define symbolic constants.
From what I can tell the only thing that const variables preserve is type checking and being able to see the const variable names in a symbolic debugger. Is using #define faster? I ask because I notice that John Carmack uses tons of #defines for symbolic constants in Quake 3 Arena. Andre LaMothe also heavily uses #defines in his code vs. const variables.
Wes Bigelow
wesbigelow@hotmail.com