Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


#ActualParadigm Shifter

Posted 01 March 2013 - 03:07 PM

You can put the function bodies for class member functions in separate source files as long as they all include the class definition (which would be in the header file).

 

Not sure if it will improve compile times though and it will probably prevent some optimisations (splitting the functions across different files, usually the optimiser only optimises each file individually), unless you use compile time linking, which slows down the compilation a lot...


#1Paradigm Shifter

Posted 01 March 2013 - 03:06 PM

You can put the function bodies in separate source files as long as they all include the class definition (which would be in the header file).

 

Not sure if it will improve compile times though and it will probably prevent some optimisations (splitting the functions across different files, usually the optimiser only optimises each file individually), unless you use compile time linking, which slows down the compilation a lot...


PARTNERS