Information générale
Catégorie:
Fonctions Windows API
Titre:
Question re time and memory cost of DEFINEs
I am creating a class with methods that call win32 functions and am wondering if I should place the DEFINEs in a single method, spread them out in the appropriate functions, or *shudder* place them in the programs that use the class.
1) If all DEFINEs are in a single method, is there a big overhead to this? Memory, time?
2) If they are spread out, is there a large downside because a DEFINE is run many times? If that is not desirable, is there a way to know if a function has already been defined?
TIA,
Alex
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement