Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Mato on October 16, 2006, 06:03:16 am

Title: reverse engineering problem
Post by: Mato on October 16, 2006, 06:03:16 am
Hi,

I am just starting to use EA - (this is not an excuse, I know) and I face a problem with reverse engineering of a code like:

...
class  __attribute__ ((packed)) Abc
{
public:
  int a;
  int b;
};
...

I have tried to define C++ languge macros (the __attribute__ is accepted as such, bat the ((packed)) afterwards fails).
Pls. note this construct is included in customer code and should remain.

Thanks for any help.
br.
Mato
Title: Re: reverse engineering problem
Post by: Eve on October 16, 2006, 03:29:08 pm
Try using __attribute__() as the language macro instead.  This skips everything in the brackets.
Title: Re: reverse engineering problem
Post by: Mato on October 16, 2006, 10:47:53 pm
Hi Simon!

Thanks for your answer - it was exactly what I was looking for.

A great help!

br
Mato
Title: Re: reverse engineering problem
Post by: mikewhit on October 17, 2006, 01:10:45 am
Now all one needs to do is distil all the advice in these forums into an Expert System database ;-)