Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Question about where to include DarkGDK . h

Author
Message
Dragon slayer
12
Years of Service
User Offline
Joined: 3rd Nov 2006
Location: Bourbonnais Illinois
Posted: 8th Jun 2013 17:35
I am trying to port a small text RPG game from a programming book to GDK. There are 4 or 5 header files and cpp files. Do I include DarkGDK.h in all my header files and cpp files or just the ones that actually use DarkGDK code? If I put it in everything the inclusion guards will keep the compiler from complaining.

Just not sure where I need to include it or is main good enough?
Rudolpho
13
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 8th Jun 2013 18:00
Include it where you need it. If you're using inclusion guards you can include it all over the place if you feel like it; it might reduce the response time for intellisense if you have too many includes in a single buffer (assuming you're using Visual Studio at least). It might also increase compilation time ever so slightly.


"Why do programmers get Halloween and Christmas mixed up?"
Dragon slayer
12
Years of Service
User Offline
Joined: 3rd Nov 2006
Location: Bourbonnais Illinois
Posted: 9th Jun 2013 00:11
That's about how I had it figured Thanks!

Login to post a reply

Server time is: 2019-09-21 11:50:25
Your offset time is: 2019-09-21 11:50:25