Re: Service Programs & Copy Source
Charles Wilt <[email protected]>
| Newsgroups | gmane.comp.lang.as400.rpg |
|---|---|
| Message-ID | <CAJ=Tnc6kAEzroZaPWSqCuAVwy-ghZMvNd6v3uYJOs0KJR4JEUg@mail.gmail.com> |
On Thu, Oct 16, 2025 at 11:07 AM Daniel Gross <[email protected]> wrote: > 2. Selective prototypes > > If you don't want every program to include all prototypes, you can > surround them with > > /if defined(AMAZON_INCLUDE_XYZ_APIs) > ... > /endif > > And then use this in your programs: > > /define AMAZON_INCLUDE_XYZ_APIs > /include AMAZON_H > Personally, I'm not a fan of this. Breaks auto-complete and/or the outline view when trying to add the first call to a procedure. You're effectively hiding the existence of a procedure, discovery is harder and I've found it can lead to duplication of functionality unless you're a 1 man shop. Charles -- This is the RPG programming on IBM i (RPG400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/rpg400-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/rpg400-l. Please contact [email protected] for any subscription related questions.