Documenting 'static inline' functions from wget.h
In wget.h, we have - as an alternative to #defines:
static inline size_t wget_base64_get_decoded_length(size_t len)
static inline size_t wget_base64_get_encoded_length(size_t len)
I see two major cons:
- Doxygen doesn't support documenting static functions, except via
EXTRACT_STATIC = YES
, which documents all static stuff from all our library source codes. - Compilers/options that doesn't really inline those functions (but just accept the
inline
keyword) would add those functions to every object file who's source code includes wget.h.
I don't see any obvious pro argument (static inline versus #define). @darnir, please comment since I remember you had some pro arguments. The first point is pretty heavy-weight, I think.