Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualParadigm Shifter

Posted 23 April 2013 - 12:46 PM

Yes and no ;)

 

The names of the fields doesn't matter, just the type and ordering, so yes.

 

But you can change the packing with #pragma pack (or with a compile time switch) (on Visual C++ anyway, other compilers may have different options/pragmas), so no. The alignment can be different when the source or header file is compiled depending on what packing is active when the struct/class definition is parsed.


#1Paradigm Shifter

Posted 23 April 2013 - 12:46 PM

Yes and no ;)

 

The names of the fields doesn't matter, just the type and ordering, so yes.

 

But you can change the packing with #pragma pack (or with a compile time switch) (on Visual C++ anyway, other compilers may have different options/pragmas), so no. The alignment can be different when the source file is compiled depending on what packing is active when the struct/class definition is parsed.


PARTNERS