Thursday, January 22, 2009

Custom Token Macro in Source Insight

We suppose,
When you use the "Source Insight" as your source code editor,

Source code is as followed

 #define PACKED __packed
 typedef PACKED struct {
  int age;
  int tall;
 } MyStyleType;

Source Insight cannot parsing the variable "MyStyleType".

How can you fix it?
Source Insight support "*.tom" file.
In this case, we can change or add "c.tom"
c.tom file in the MyDocument\Source Insight\C.tom

We can add some key words,
_packed
packed
PACKED

That's all.

No comments: