Re: [PATCH 1/3] kconfig.h: abstract empty functions with STUB_UNLESS macro

2019-01-18 Thread Steven Price
On 18/01/2019 16:00, Andrew Murray wrote: > A common pattern found in header files is a function declaration dependent > on a CONFIG_ option being enabled, followed by an empty function for when > that option isn't enabled. This can often take up a lot of space and impact > code readability. > > L

[PATCH 1/3] kconfig.h: abstract empty functions with STUB_UNLESS macro

2019-01-18 Thread Andrew Murray
A common pattern found in header files is a function declaration dependent on a CONFIG_ option being enabled, followed by an empty function for when that option isn't enabled. This can often take up a lot of space and impact code readability. Let's introduce the following STUB_UNLESS macro: STUB_