How can I ensure that the custom. h header file is automatically included in each generated file?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I ensure that the custom. h header file is automatically included in each generated file?

370 Views
xuegj1010
Contributor I

The version I am using is Gui Guider-1.9.1-GA.
For example, if I want to use the function declared in custom. h in event_init. c, how can I ensure that every generated event_init. c contains the custom. h header file.

Tags (1)
0 Kudos
Reply
1 Reply

315 Views
WenbinYuan
NXP Employee
NXP Employee

Hi @xuegj1010 ,

 

You only need to add a custom include in Event configration like this (recommand add to screen _loaded):

WenbinYuan_0-1751253608996.png

It will be generate into top of events_init.c:

WenbinYuan_1-1751253711352.png

In one GUI Guider project there's only one events_init.c/h file will be generated, it handles events for all screen.

Hope it helps.

 

Best Regards,

Wenbin

 

0 Kudos
Reply