On Thu, Oct 16, 2025 at 11:07 AM Daniel Gross <daniel@xxxxxxxx> 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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.