Book a Demo

Author Topic: Add __packed to struct  (Read 2443 times)

CGRon

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Add __packed to struct
« on: September 29, 2010, 09:37:14 pm »
How do I add the __packed qualifier to a struct?  I would like to get:

__packed struct MyStruct
{
}

I have tried creating a new stereotype, but that doesn't work.  I have tried having EA resynch, but it gives an error when it gets to the __packed line.

Help....
Thanks,

Ron

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Add __packed to struct
« Reply #1 on: October 04, 2010, 09:34:31 am »
Add it to Settings | Pre-processor macros.

Reverse engineer it and it will put it in a tagged value.  Use the same tagged value on other elements will then generate __packed.