![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: generating class with packed element for gcc Topic Summary: Created On: 7-Oct-2005 11:02 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I would like to generate a packed class using gcc.
The syntax in gcc shd look like: class A{ int x; char y; A(); }__attribute__((packed)); How could i generate the __attribute__ as shown above between the class closing bracket and semicolon? In case of VC++, I just use #pragma pack in specification epilog,but most of the gcc compiler dont support or recommend it. have any one come across such problem? Regards, Kishore |
|
![]() |
|
![]() |
|
Hi,
you might look up the Codegenerator properties. I think they have something like "pre-" or "post-" prologue, where you can insert your own code at the end of a class. kind regards, Bernhard. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.