Re: question about `static inline` functions in header files

2022-07-21 Thread Junwang Zhao
Ok, thanks for the clarification. On Fri, Jul 22, 2022 at 11:03 AM Tom Lane wrote: > > Junwang Zhao writes: > > I notice that there are lots of *static inline functions* in header files, > > the header file's content will go into each translation unit at preprocess > > phase, that means all the

Re: question about `static inline` functions in header files

2022-07-21 Thread Tom Lane
Junwang Zhao writes: > I notice that there are lots of *static inline functions* in header files, > the header file's content will go into each translation unit at preprocess > phase, that means all the c file including the header will have a copy > of the static inline function. We are assuming