Answer the question
In order to leave comments, you need to log in
Is it normal to have #define set in code instead of magic numbers?
Is it normal to have a great many #define in the code instead of magic numbers?
Answer the question
In order to leave comments, you need to log in
Unless it's
#define PI 3.1415
And not
#define SOME_MAGIC_CONSTANT 3.1415
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question