[LTP] [PATCH 2/2] Fix BPF test program loading issues
Cyril Hrubis
chrubis@suse.cz
Wed Feb 5 16:50:12 CET 2020
Hi!
> > Why can't we keep the code in the header? I do not condsider this to be
> > improving anything at all.
>
> Because executable code doesn't belong in header files unless necessary.
> Header files are as much API documentation for developers as they are
> code for compilers. And header files full of executable code make
> terrible API documentation.
That's only true if we are building and external interface for a
library, here we are just avoiding copy&paste by the simpliest means
available.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list