Projects
Jams
Events
Jams
Unwind
Resources
Forums
Fishbowls
Podcast
Handmade Cities
HandmadeCon
About
Manifesto
About the Team
Log In
The
2024 Wheel Reinvention Jam
is in
16 days.
September 23-29, 2024.
More info
← Back to index
#define and typedef DIRECT_SOUND_CREATE
grillage
#13770
December 16, 2017
Why is Casey using a #define for DIRECT_SOUND_CREATE? I can see that with the X_INPUT macros he is saving writing the full definitions twice. But DIRECT_SOUND_CREATE is only used once. Is the #define really necessary?
Mārtiņš Možeiko
#13773
December 16, 2017
Because he is used to declare function pointers with this kind of macro. It just a habit thing.
grillage
#13774
December 16, 2017
But in this case it is not necessary right?
Mārtiņš Možeiko
#13778
December 17, 2017
It is not necessary in any case. You can always type full function signature in all the places where its needed. And it will work fine.
Reply to Thread
← Back to index