admain.c in Phab

How can I put code in apmain.c without it getting written over everytime I
generate in Phab?

Ben

Hello Ben,

I’m assuming that you mean abmain.c. Any filename that starts with ab is
a PhAB file and shouldn’t be modified at any time. If you try to edit an
ab file, you could lose work (when PhAB overwrites the file) or
experience incorrect behavior (when files get out of sync). Depending on
what you want to do, usually a setup function will do the trick.

Regards,
Dave B.



Ben wrote:

How can I put code in apmain.c without it getting written over everytime I
generate in Phab?

Ben