General information
Category:
Windows API functions
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only