On Tue, Aug 30, 2022 at 4:16 PM Gregory Nutt <spudan...@gmail.com> wrote: > > > compiler.h has changed a lot. Does it still support compilers without > > > inline support? It appears not. I used to define inline to be nothing > > for > > > ZDS-II which worked okay except for static inline functions in header > > files > > > which would be replicated. > > > > > > > If this is acceptable, I could create a new macro in compiler.h for it. > > > > There used to be one defining inline to be nothing for ZDS-II . It would > only be necessary to restore it for ZDS-II. This does not fix the function > duplication of static inline functions in header files, however.
Is the duplication really a problem, though? After all, the whole point of a static inline function is to insert the code directly at the call sites, which implies duplication and larger code footprint. Ostensibly static inline should only be used for "very small" functions. Cheers, Nathan