N
Nish
Hi,
I have a question regarding inline functions in C. If I declare a
function as inline in the header file but do not define it there.
Then I define that function in .c file, however neither make it static
nor inline nor extern in the .c file.
What would the compiler (gcc) do in this case? Will it just create
object code for that function which can be called from any translation
unit and never inlined. Or will it create the object code for that
function, however inline it when I compile the .c file? Or neither of
these?
It would be great if someone could guide me to the correct group to
post this message, if this is not the right group.
Thanks,
Nish.
I have a question regarding inline functions in C. If I declare a
function as inline in the header file but do not define it there.
Then I define that function in .c file, however neither make it static
nor inline nor extern in the .c file.
What would the compiler (gcc) do in this case? Will it just create
object code for that function which can be called from any translation
unit and never inlined. Or will it create the object code for that
function, however inline it when I compile the .c file? Or neither of
these?
It would be great if someone could guide me to the correct group to
post this message, if this is not the right group.
Thanks,
Nish.