Book a Demo

Author Topic: Storing #define and #pragma in model  (Read 3051 times)

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Storing #define and #pragma in model
« on: June 21, 2010, 05:50:30 am »
Similar to my other question about storing #include's (and perhaps with the same answer...)...

We have one .h file that has a list of #define's (needed to define positions of I/O pins in a real time embedded system) and also has a "#pragma pack(1)" to make sure everything is byte-packed.  These are all contained in a .h file but outside of any class.

How do I store all of these in the model so that they don't get lost every time the code is re-generated?