How is <tgmath.h> implemented?

C doesn't (as far as I know) have overloads or patterns, right? So, how can there be a set of functions of the same type with the same name? The usual compilation trick included a whole bunch of macros, right?

+4
source share
1 answer

A great explanation of how this works in GCC here .

In addition, if someone can solve an exercise of medium difficulty, I would like to know the answer.

+8
source

Source: https://habr.com/ru/post/1308204/


All Articles