samedi 3 septembre 2016

C++ / C #define macro calculation

Suppose I have

#define DETUNE1 sqrt(7)-sqrt(5)
#define DETUNE2 sqrt(11)-sqrt(7)

And I call these multiple times in my program.

Are DETUNE1 and DETUNE2 calculated every time it is called?

Aucun commentaire:

Enregistrer un commentaire