On 9/4/22 23:16, Alejandro Colomar wrote:
An always_inline function with no extern definition behaves as if it were a macro (trying to take a pointer to it, or something that needs a linker symbol, will result in linker errors, which is not the most readable error, but good enough), in the sense that it doesn't have ABI issues, but has the benefit of not creating code exponentially.
Although of course not being able to take pointers to it is a problem for libc. The macro with _Generic has the same issue. libc seems to need preprocessor #if.
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature