C study buddy?

Ioannis Nompelis nompelis at nobelware.com
Tue Nov 20 17:14:04 UTC 2018

> * There's a trick to adding the line number in a string built entirely
>   within the macro.
>   https://github.com/begriffs/libc/blob/master/assert.h#L12-L14

Way cool. Seen this before. Never used it.

> * <ctype.h> makes macro overrides of its functions. This way the
>   programmer can get the speed of a macro but have access to a function
>   if needed for function pointers.
> * If foo is a function and covered up with a macro of the same name,
>   you can still get at the function by enclosing it in parens (foo)(x).

Did not know!

I wish I had the time to dig in there with you, Joe.

More information about the Friends mailing list